[ros-diffs] [jgardou] 50993: [NTOSKRNL] - shrink cpu features output. - Add reference for the detection of non SYSENTER aware but claiming so CPUs detection

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Mar 7 18:45:12 UTC 2011


Author: jgardou
Date: Mon Mar  7 18:45:11 2011
New Revision: 50993

URL: http://svn.reactos.org/svn/reactos?rev=50993&view=rev
Log:
[NTOSKRNL]
  - shrink cpu features output.
  - Add reference for the detection of non SYSENTER aware but claiming so CPUs detection

Modified:
    trunk/reactos/ntoskrnl/ke/i386/cpu.c

Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev=50993&r1=50992&r2=50993&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Mon Mar  7 18:45:11 2011
@@ -311,7 +311,8 @@
                 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 @@
     
     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 @@
     print_supported(KF_NX_DISABLED);
     print_supported(KF_NX_ENABLED);
 #undef print_supported
+    DPRINT1("\n");
 
     /* Return the Feature Bits */
     return FeatureBits;




More information about the Ros-diffs mailing list