mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +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->StackLimit = (ULONG_PTR)KernelStack - KERNEL_STACK_SIZE;
|
||||||
Thread->KernelStackResident = TRUE;
|
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 */
|
/* Enter SEH to avoid crashes due to user mode */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
|
|
|
@ -150,8 +150,6 @@ KiDispatchThreadNoLock(ULONG NewThreadStatus)
|
||||||
KiIdleSummary |= Affinity;
|
KiIdleSummary |= Affinity;
|
||||||
}
|
}
|
||||||
|
|
||||||
MmUpdatePageDir((PEPROCESS)PsGetCurrentProcess(),((PETHREAD)CurrentThread)->ThreadsProcess, sizeof(EPROCESS));
|
|
||||||
|
|
||||||
/* Special note for Filip: This will release the Dispatcher DB Lock ;-) -- Alex */
|
/* Special note for Filip: This will release the Dispatcher DB Lock ;-) -- Alex */
|
||||||
DPRINT("You are : %x, swapping to: %x.\n", OldThread, CurrentThread);
|
DPRINT("You are : %x, swapping to: %x.\n", OldThread, CurrentThread);
|
||||||
ApcState = KiSwapContext(OldThread, CurrentThread);
|
ApcState = KiSwapContext(OldThread, CurrentThread);
|
||||||
|
|
Loading…
Reference in a new issue