diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2014-08-18 23:03:46 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-18 23:03:46 +0000 |
commit | eee1d2ca9078742157c843562f1188eb96473322 (patch) | |
tree | 7609cb1cb555df09eb50a6a116e694a83421b55d /UefiCpuPkg/ResetVector/Vtf0/Ia32 | |
parent | 5a1f324d946cb1be2dc1226752b1965d6633232f (diff) | |
download | edk2-eee1d2ca9078742157c843562f1188eb96473322.tar.gz edk2-eee1d2ca9078742157c843562f1188eb96473322.tar.bz2 edk2-eee1d2ca9078742157c843562f1188eb96473322.zip |
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
Diffstat (limited to 'UefiCpuPkg/ResetVector/Vtf0/Ia32')
-rw-r--r-- | UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm b/UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm index 0cfcbae87b..2e16e71f6a 100644 --- a/UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm +++ b/UefiCpuPkg/ResetVector/Vtf0/Ia32/PageTables64.asm @@ -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
|