From: Jérôme Gardou Date: Mon, 7 Mar 2011 18:45:11 +0000 (+0000) Subject: [NTOSKRNL] X-Git-Tag: ReactOS-0.3.13~50 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=f7049d7fb798c6e392ccc11c07b64742cd6c620d [NTOSKRNL] - shrink cpu features output. - Add reference for the detection of non SYSENTER aware but claiming so CPUs detection svn path=/trunk/; revision=50993 --- diff --git a/reactos/ntoskrnl/ke/i386/cpu.c b/reactos/ntoskrnl/ke/i386/cpu.c index 4b56a2b9f26..b17a15199b8 100644 --- a/reactos/ntoskrnl/ke/i386/cpu.c +++ b/reactos/ntoskrnl/ke/i386/cpu.c @@ -311,7 +311,8 @@ KiGetFeatureBits(VOID) Reg[3] |= 0x800; } - /* Check if the CPU is too old to support SYSENTER */ + /* Check if the CPU is too old to support SYSENTER, + * See Intel CPUID instruction manual for details*/ if ((Reg[0] & 0x0FFF3FFF) < 0x00000633) { /* Disable it */ @@ -483,7 +484,7 @@ KiGetFeatureBits(VOID) DPRINT1("Supported CPU features :\n"); #define print_supported(kf_value) \ - if(FeatureBits & kf_value) DPRINT1("\t" #kf_value "\n") + if(FeatureBits & kf_value) DPRINT1("\t" #kf_value) print_supported(KF_V86_VIS); print_supported(KF_RDTSC); print_supported(KF_CR4); @@ -506,6 +507,7 @@ KiGetFeatureBits(VOID) print_supported(KF_NX_DISABLED); print_supported(KF_NX_ENABLED); #undef print_supported + DPRINT1("\n"); /* Return the Feature Bits */ return FeatureBits;