mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:KE] Use PNT_TIB as argument in KeSetTebBase
This commit is contained in:
parent
8f963c38c6
commit
187ca32175
2 changed files with 2 additions and 2 deletions
|
@ -315,7 +315,7 @@ Ke386SetGdtEntryBase(PKGDTENTRY GdtEntry, PVOID BaseAddress)
|
|||
|
||||
FORCEINLINE
|
||||
VOID
|
||||
KiSetTebBase(PKPCR Pcr, PVOID TebAddress)
|
||||
KiSetTebBase(PKPCR Pcr, PNT_TIB TebAddress)
|
||||
{
|
||||
Pcr->NtTib.Self = TebAddress;
|
||||
Ke386SetGdtEntryBase(&Pcr->GDT[KGDT_R3_TEB / sizeof(KGDTENTRY)], TebAddress);
|
||||
|
|
|
@ -363,7 +363,7 @@ KiSwapContextExit(IN PKTHREAD OldThread,
|
|||
Ke386SetGs(0);
|
||||
|
||||
/* Set the TEB */
|
||||
KiSetTebBase((PKPCR)Pcr, NewThread->Teb);
|
||||
KiSetTebBase((PKPCR)Pcr, &NewThread->Teb->NtTib);
|
||||
|
||||
/* Set new TSS fields */
|
||||
Pcr->TSS->Esp0 = (ULONG_PTR)NewThread->InitialStack;
|
||||
|
|
Loading…
Reference in a new issue