X86: Set an initial value for the LDT selector.
This commit is contained in:
parent
e23d688d8f
commit
1786f20058
1 changed files with 3 additions and 0 deletions
|
@ -299,6 +299,9 @@ I386LiveProcess::startup()
|
|||
tc->setMiscRegNoEffect(MISCREG_TSG_EFF_BASE, _gdtStart);
|
||||
tc->setMiscRegNoEffect(MISCREG_TSG_LIMIT, _gdtStart + _gdtSize - 1);
|
||||
|
||||
// Set the LDT selector to 0 to deactivate it.
|
||||
tc->setMiscRegNoEffect(MISCREG_TSL, 0);
|
||||
|
||||
//Set up the registers that describe the operating mode.
|
||||
CR0 cr0 = 0;
|
||||
cr0.pg = 1; // Turn on paging.
|
||||
|
|
Loading…
Reference in a new issue