[Python-apps-commits] r5924 - in packages/pyrit/trunk/debian/patches (2 files)

chrisk-guest at users.alioth.debian.org chrisk-guest at users.alioth.debian.org
Tue Jul 27 20:09:45 UTC 2010


    Date: Tuesday, July 27, 2010 @ 20:09:03
  Author: chrisk-guest
Revision: 5924

Added patch fixing MMX/SSE2 detection and handling

Added:
  packages/pyrit/trunk/debian/patches/0012-fix-SSE2-detection.patch
Modified:
  packages/pyrit/trunk/debian/patches/series

Added: packages/pyrit/trunk/debian/patches/0012-fix-SSE2-detection.patch
===================================================================
--- packages/pyrit/trunk/debian/patches/0012-fix-SSE2-detection.patch	                        (rev 0)
+++ packages/pyrit/trunk/debian/patches/0012-fix-SSE2-detection.patch	2010-07-27 20:09:03 UTC (rev 5924)
@@ -0,0 +1,24 @@
+From: Luks Lueg <lukas.lueg at gmail.com>
+Date: Wed, 23 Jul 2010 18:25:32 +0200
+Subject: [PATCH] Fix SSE2 detection
+
+The MMX/SSE2 detection code led to a crash on those (now) rare CPUs supporting
+MMX but not SSE2.
+
+Origin: upstream, http://code.google.com/p/pyrit/source/detail?r=271
+Applied-Upstream: 0.3.1
+Last-Update: 2010-07-27
+
+Index: pyrit-0.3.0/cpyrit/_cpyrit_cpu_sse2.S
+===================================================================
+--- pyrit-0.3.0.orig/cpyrit/_cpyrit_cpu_sse2.S	2010-07-27 00:25:28.990044350 +0200
++++ pyrit-0.3.0/cpyrit/_cpyrit_cpu_sse2.S	2010-07-27 00:26:16.462043069 +0200
+@@ -498,7 +498,7 @@
+ 
+     movl    $1, %eax
+     cpuid
+-    testl   $(0x00800000 | 0x04000000), %edx  // bits 23 and 26 (MMX/SSE2)
++    testl   $0x04000000, %edx  // bit 26 (SSE2)
+     jz      no_sse2
+     movl    $1, %eax
+     jmp     cpuid_exit

Modified: packages/pyrit/trunk/debian/patches/series
===================================================================
--- packages/pyrit/trunk/debian/patches/series	2010-07-27 20:06:06 UTC (rev 5923)
+++ packages/pyrit/trunk/debian/patches/series	2010-07-27 20:09:03 UTC (rev 5924)
@@ -9,3 +9,4 @@
 0009-exception-handling-fix.patch
 0010-Add-SHA1-licensing-update-from-upstream.patch
 0011-fix-list-index-error.patch
+0012-fix-SSE2-detection.patch




More information about the Python-apps-commits mailing list