The missing patch.

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
diff -ur ../syslinux-3.31.old/cpuinit.inc ./cpuinit.inc
--- ../syslinux-3.31.old/cpuinit.inc	2007-02-12 22:54:02.000000000 +0100
+++ ./cpuinit.inc	2007-02-12 22:52:17.000000000 +0100
@@ -88,19 +88,9 @@
 		xor eax,ebx
 		jz is_32bit
 ;
-; Now check for the 64-bit flag in the CPU features byte ($0000_0001, edx)
-; This is bit 30 for Intel CPUs, and bit 29 for AMD CPUs
+; Now check for the 64-bit flag (bit 29) in the CPU extended features byte ($8000_0001, edx)
 ;
-		mov eax, 00000000h		; Find last Intel cpuid #
-		cpuid
-		cmp eax, 00000000h
-		je test_amd
-		mov eax, 00000001h		; Read Intel CPU flags
-		cpuid
-		bt edx, 30			; 64-bit if bit 30 is set
-		jc is_64bit
-
-test_amd:	mov eax, 80000000h		; Find last AMD cpuid #
+		mov eax, 80000000h		; Find last AMD cpuid #
 		cpuid
 		cmp eax, 80000000h
 		jbe is_32bit

Reply via email to