Author: sir_richard Date: Wed Jan 27 04:36:18 2010 New Revision: 45281
URL: http://svn.reactos.org/svn/reactos?rev=45281&view=rev Log: [NTOS]: Trunk boots now (interesting that buildbot's QEMU does not support SYSENTER, as newer versions do), so remove the test DPRINTs.
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=... ============================================================================== --- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Wed Jan 27 04:36:18 2010 @@ -831,7 +831,6 @@ if ((KiSystemCallExitAdjusted == KiSystemCallExitAdjust) && (KiFastCallCopyDoneOnce)) { - DPRINT1("SYSEXIT Code Patch was already done!\n"); return; }
@@ -839,17 +838,14 @@ if ((KiSystemCallExitBranch[1] - KiSystemCallExitAdjust) < 0x80) { /* Remove any existing code patch */ - DPRINT1("Correct SHORT size found\n"); KiDisableFastSyscallReturn();
/* We should have a JNZ there */ ASSERT(KiSystemCallExitBranch[0] == 0x75);
/* Do the patch */ - DPRINT1("Current jump offset: %lx\n", KiSystemCallExitBranch[1]); KiSystemCallExitAdjusted = KiSystemCallExitAdjust; KiSystemCallExitBranch[1] -= KiSystemCallExitAdjusted; - DPRINT1("New jump offset: %lx\n", KiSystemCallExitBranch[1]);
/* Remember that we've done it */ KiFastCallCopyDoneOnce = TRUE; @@ -873,12 +869,10 @@ if (!KiFastSystemCallDisable) { /* KiSystemCallExit2 should come BEFORE KiSystemCallExit */ - DPRINT1("Exit2: %p Exit1: %p\n", KiSystemCallExit2, KiSystemCallExit); ASSERT(KiSystemCallExit2 < KiSystemCallExit);
/* It's enabled, so we'll have to do a code patch */ KiSystemCallExitAdjust = KiSystemCallExit - KiSystemCallExit2; - DPRINT1("SYSENTER Capable Machine. Jump Offset Delta: %lx\n", KiSystemCallExitAdjust); } else {