From 87065d0083b0cd71a22858b1f077d213b8feabbd Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 23 Apr 2004 05:34:54 +0000 Subject: [PATCH] Fix return for cpuid. svn path=/trunk/; revision=9199 --- reactos/ntoskrnl/ke/i386/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/kernel.c b/reactos/ntoskrnl/ke/i386/kernel.c index 9efc3aa9394..359e36d277f 100644 --- a/reactos/ntoskrnl/ke/i386/kernel.c +++ b/reactos/ntoskrnl/ke/i386/kernel.c @@ -41,7 +41,7 @@ ULONG KiPcrInitDone = 0; static ULONG PcrsAllocated = 0; static PHYSICAL_ADDRESS PcrPages[MAXIMUM_PROCESSORS]; -ULONG Ke386CpuidFlags, Ke386CpuidFlags2, Ke386CpuidExFlags; +ULONG Ke386CpuidFlags, Ke386CpuidFlags2, Ke386CpuidExFlags, Ke386Cpuid; #define X86_EFLAGS_ID (1 << 21) @@ -81,7 +81,7 @@ Ki386GetCpuId(VOID) { /* Get the feature flags. */ __asm__("cpuid\n\t" - : "=d" (Ke386CpuidFlags), "=c" (Ke386CpuidFlags2) + : "=a" (Ke386Cpuid),"=d" (Ke386CpuidFlags), "=c" (Ke386CpuidFlags2) : "a" (0x00000001) : "ebx"); }