[NTOS]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 17 Mar 2010 21:26:04 +0000 (21:26 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 17 Mar 2010 21:26:04 +0000 (21:26 +0000)
Add DPRINTs to tell if SYSENTER is detected. Requested by Christoph for testing the test machine.

svn path=/trunk/; revision=46253

reactos/ntoskrnl/ke/i386/cpu.c

index 9434259..e05a896 100644 (file)
@@ -1010,18 +1010,21 @@ KiRestoreFastSyscallReturnState(VOID)
 
             /* It's enabled, so use the proper exit stub */
             KiFastCallExitHandler = KiSystemCallSysExitReturn;
 
             /* It's enabled, so use the proper exit stub */
             KiFastCallExitHandler = KiSystemCallSysExitReturn;
+            DPRINT1("Support for SYSENTER detected.\n");
         }
         else
         {
             /* Disable fast system call */
             KeFeatureBits &= ~KF_FAST_SYSCALL;
             KiFastCallExitHandler = KiSystemCallTrapReturn;
         }
         else
         {
             /* Disable fast system call */
             KeFeatureBits &= ~KF_FAST_SYSCALL;
             KiFastCallExitHandler = KiSystemCallTrapReturn;
+            DPRINT1("Support for SYSENTER disabled.\n");
         }
     }
     else
     {
         /* Use the IRET handler */
         KiFastCallExitHandler = KiSystemCallTrapReturn;
         }
     }
     else
     {
         /* Use the IRET handler */
         KiFastCallExitHandler = KiSystemCallTrapReturn;
+        DPRINT1("No support for SYSENTER detected.\n");
     }
 }
 
     }
 }