]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm
UefiCpuPkg VTF0 X64: Build page tables in NASM code
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Ia32 / PageTables64.asm
index 0cfcbae87b5d1e2c0b4cf761a6b6e38155f9e229..2e16e71f6af99d2e314f7ceeda0e96392075074b 100644 (file)
@@ -21,9 +21,9 @@ BITS    32
 SetCr3ForPageTables64:\r
 \r
     ;\r
-    ; These pages are built into the ROM image by Tools/FixupForRawSection.py\r
+    ; These pages are built into the ROM image in X64/PageTables.asm\r
     ;\r
-    mov     eax, ((ADDR_OF_START_OF_RESET_CODE & ~0xfff) - 0x1000)\r
+    mov     eax, ADDR_OF(TopLevelPageDirectory)\r
     mov     cr3, eax\r
 \r
     OneTimeCallRet SetCr3ForPageTables64\r