diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-06-24 07:28:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-06-24 07:28:16 +0200 |
commit | f0b471efb9395509f944ae410d0869bc05d30f50 (patch) | |
tree | 38ceb199dc1d21641f62529ffd965a3b8a197969 /sys/src/cmd/aux/realemu | |
parent | d9d6cdffac06f63294a00fee6dd6ee563b1d3a8a (diff) |
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!
Diffstat (limited to 'sys/src/cmd/aux/realemu')
-rw-r--r-- | sys/src/cmd/aux/realemu/xec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/aux/realemu/xec.c b/sys/src/cmd/aux/realemu/xec.c index e4968c52e..3371f21f6 100644 --- a/sys/src/cmd/aux/realemu/xec.c +++ b/sys/src/cmd/aux/realemu/xec.c @@ -932,9 +932,9 @@ opcpuid(Cpu *cpu, Inst *) } tab[] = { 0, 5, - 0x756e6547, - 0x49656e69, - 0x6c65746e, + 0x756e6547, /* Genu */ + 0x6c65746e, /* ntel */ + 0x49656e69, /* ineI */ 1, 4<<8, 0x00000000, |