From 7a7c6e2c988e28ea60b4828095dcb41dc9d3e568 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Mon, 18 Aug 2008 07:42:12 +0000 Subject: [PATCH] - Remove 3 deprecated macros - Use X86_EFLAGS_ID instead of cpu.c specific EFLAGS_ID svn path=/trunk/; revision=35422 --- reactos/ntoskrnl/ke/i386/cpu.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/cpu.c b/reactos/ntoskrnl/ke/i386/cpu.c index d5f9298b685..c2bf0afc12b 100644 --- a/reactos/ntoskrnl/ke/i386/cpu.c +++ b/reactos/ntoskrnl/ke/i386/cpu.c @@ -12,12 +12,6 @@ #define NDEBUG #include -/* FIXME: Local EFLAGS defines not used anywhere else */ -#define EFLAGS_IOPL 0x3000 -#define EFLAGS_NF 0x4000 -#define EFLAGS_RF 0x10000 -#define EFLAGS_ID 0x200000 - /* GLOBALS *******************************************************************/ /* The Boot TSS */ @@ -133,7 +127,7 @@ KiSetProcessorType(VOID) Ke386SaveFlags(EFlags); /* XOR out the ID bit and update EFlags */ - NewEFlags = EFlags ^ EFLAGS_ID; + NewEFlags = EFlags ^ X86_EFLAGS_ID; Ke386RestoreFlags(NewEFlags); /* Get them back and see if they were modified */ @@ -141,7 +135,7 @@ KiSetProcessorType(VOID) if (NewEFlags != EFlags) { /* The modification worked, so CPUID exists. Set the ID Bit again. */ - EFlags |= EFLAGS_ID; + EFlags |= X86_EFLAGS_ID; Ke386RestoreFlags(EFlags); /* Peform CPUID 0 to see if CPUID 1 is supported */