[NTOSKRNL]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 7 Mar 2011 18:45:11 +0000 (18:45 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 7 Mar 2011 18:45:11 +0000 (18:45 +0000)
  - shrink cpu features output.
  - Add reference for the detection of non SYSENTER aware but claiming so CPUs detection

svn path=/trunk/; revision=50993

reactos/ntoskrnl/ke/i386/cpu.c

index 4b56a2b..b17a151 100644 (file)
@@ -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;