mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
Ring3: Set 1G User pages as not present by default, fixed padding.
This commit is contained in:
parent
0e14a53096
commit
0fd0e992d0
@ -111,7 +111,7 @@ MakeUserPageTableTemplate (
|
||||
//
|
||||
PageDirectory1GEntry->Uint64 = (UINT64)PageAddress | PageTableInfo->AddressEncMask;
|
||||
PageDirectory1GEntry->Bits.ReadWrite = 1;
|
||||
PageDirectory1GEntry->Bits.Present = 1;
|
||||
PageDirectory1GEntry->Bits.Present = 0;
|
||||
PageDirectory1GEntry->Bits.MustBe1 = 1;
|
||||
}
|
||||
} else {
|
||||
|
@ -63,11 +63,14 @@ global ASM_PFX(UserPageTable)
|
||||
ASM_PFX(UserPageTable):
|
||||
resq 1
|
||||
|
||||
ALIGN 4096
|
||||
global ASM_PFX(mSwitchCr3Flag)
|
||||
ASM_PFX(mSwitchCr3Flag):
|
||||
db 0x0
|
||||
|
||||
ALIGN 4096
|
||||
Padding:
|
||||
db 0x0
|
||||
|
||||
DEFAULT REL
|
||||
SECTION .text
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user