- No need to apply the ROS Page hack inside thread switching, since the process is the same.

svn path=/trunk/; revision=24041
This commit is contained in:
Alex Ionescu 2006-09-10 19:41:31 +00:00
parent ecb32725f7
commit 344fd08452
2 changed files with 0 additions and 8 deletions

View file

@ -697,12 +697,6 @@ KeInitThread(IN OUT PKTHREAD Thread,
Thread->StackLimit = (ULONG_PTR)KernelStack - KERNEL_STACK_SIZE;
Thread->KernelStackResident = TRUE;
/* ROS Mm HACK */
MmUpdatePageDir((PEPROCESS)Process,
(PVOID)Thread->StackLimit,
KERNEL_STACK_SIZE);
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread, sizeof(ETHREAD));
/* Enter SEH to avoid crashes due to user mode */
Status = STATUS_SUCCESS;
_SEH_TRY

View file

@ -150,8 +150,6 @@ KiDispatchThreadNoLock(ULONG NewThreadStatus)
KiIdleSummary |= Affinity;
}
MmUpdatePageDir((PEPROCESS)PsGetCurrentProcess(),((PETHREAD)CurrentThread)->ThreadsProcess, sizeof(EPROCESS));
/* Special note for Filip: This will release the Dispatcher DB Lock ;-) -- Alex */
DPRINT("You are : %x, swapping to: %x.\n", OldThread, CurrentThread);
ApcState = KiSwapContext(OldThread, CurrentThread);