mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
- 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:
parent
ecb32725f7
commit
344fd08452
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue