mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
- Fix setting of GDT and IDT pointers in KPCR.
svn path=/trunk/; revision=10386
This commit is contained in:
parent
47b5abbd99
commit
f9ee38ed2b
1 changed files with 2 additions and 2 deletions
|
@ -179,8 +179,8 @@ KeInit1(VOID)
|
||||||
memset(KPCR, 0, PAGE_SIZE);
|
memset(KPCR, 0, PAGE_SIZE);
|
||||||
KPCR->Self = (PKPCR)KPCR_BASE;
|
KPCR->Self = (PKPCR)KPCR_BASE;
|
||||||
KPCR->Irql = HIGH_LEVEL;
|
KPCR->Irql = HIGH_LEVEL;
|
||||||
KPCR->GDT = (PUSHORT)&KiBootGdt;
|
KPCR->GDT = KiBootGdt;
|
||||||
KPCR->IDT = (PUSHORT)&KiIdt;
|
KPCR->IDT = (PUSHORT)KiIdt;
|
||||||
KPCR->TSS = &KiBootTss;
|
KPCR->TSS = &KiBootTss;
|
||||||
KPCR->ProcessorNumber = 0;
|
KPCR->ProcessorNumber = 0;
|
||||||
KiPcrInitDone = 1;
|
KiPcrInitDone = 1;
|
||||||
|
|
Loading…
Reference in a new issue