UefiCpuPkg VTF0 X64: Build page tables in NASM code
Previously, we would build the page tables in Tools/FixupForRawSection.py. In order to let NASM build VTF0 from source during the EDK II build process, we need to move this into the VTF0 NASM code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15822 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -21,9 +21,9 @@ BITS 32
|
||||
SetCr3ForPageTables64:
|
||||
|
||||
;
|
||||
; These pages are built into the ROM image by Tools/FixupForRawSection.py
|
||||
; These pages are built into the ROM image in X64/PageTables.asm
|
||||
;
|
||||
mov eax, ((ADDR_OF_START_OF_RESET_CODE & ~0xfff) - 0x1000)
|
||||
mov eax, ADDR_OF(TopLevelPageDirectory)
|
||||
mov cr3, eax
|
||||
|
||||
OneTimeCallRet SetCr3ForPageTables64
|
||||
|
Reference in New Issue
Block a user