git: 9front

Download patch

ref: 11a993222934bcf02350d8357aefb4f7e19172bc
parent: eddec190cb40753396431db751e52b09d28b296e
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Jun 24 03:28:16 EDT 2012

realemu: fix cpuid

ECX and EDX were incorrectly swapped.

Ref: http://wiki.osdev.org/CPUID

thanks Anthony Martin <ality@pbrane.org> for sending the patch!

--- a/sys/src/cmd/aux/realemu/xec.c
+++ b/sys/src/cmd/aux/realemu/xec.c
@@ -932,9 +932,9 @@
 	} tab[] = {
 		0,
 			5,
-			0x756e6547,
-			0x49656e69,
-			0x6c65746e,
+			0x756e6547, /* Genu */
+			0x6c65746e, /* ntel */
+			0x49656e69, /* ineI */
 		1,
 			4<<8,
 			0x00000000,
--