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