summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/ResetVector
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-03-01 08:43:59 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-03-01 18:47:27 +0000
commit318b0d714a7ef184ceb445d16f63c9687e89b10e (patch)
tree316c03a41eb7f81b07917f42b28fa4c6c6bbf1fa /OvmfPkg/ResetVector
parent49b7faba1d6e29bd6238d6b85de22b2c3fca4d12 (diff)
downloadedk2-318b0d714a7ef184ceb445d16f63c9687e89b10e.tar.gz
edk2-318b0d714a7ef184ceb445d16f63c9687e89b10e.tar.bz2
edk2-318b0d714a7ef184ceb445d16f63c9687e89b10e.zip
OvmfPkg/ResetVector: print post codes for 4/5 level paging
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20240301074402.98625-8-kraxel@redhat.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Oliver Steffen <osteffen@redhat.com> Cc: Michael Roth <michael.roth@amd.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: Min Xu <min.m.xu@intel.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Tom Lendacky <thomas.lendacky@amd.com> [lersek@redhat.com: turn the "Cc:" message headers from Gerd's on-list posting into "Cc:" tags in the commit message, in order to pacify "PatchCheck.py"]
Diffstat (limited to 'OvmfPkg/ResetVector')
-rw-r--r--OvmfPkg/ResetVector/Ia32/PageTables64.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/OvmfPkg/ResetVector/Ia32/PageTables64.asm b/OvmfPkg/ResetVector/Ia32/PageTables64.asm
index 2d7fd523e4..e15945da04 100644
--- a/OvmfPkg/ResetVector/Ia32/PageTables64.asm
+++ b/OvmfPkg/ResetVector/Ia32/PageTables64.asm
@@ -69,6 +69,10 @@ BITS 32
; Argument: upper 32 bits of the page table entries
;
%macro CreatePageTables4Level 1
+
+ ; indicate 4-level paging
+ debugShowPostCode 0x41
+
;
; Top level Page Directory Pointers (1 * 512GB entry)
;
@@ -153,6 +157,10 @@ BITS 32
; level 3 directory.
;
%macro CreatePageTables5Level 1
+
+ ; indicate 5-level paging
+ debugShowPostCode 0x51
+
; level 5
mov dword[PT_ADDR (0)], PT_ADDR (0x1000) + PAGE_PDE_DIRECTORY_ATTR
mov dword[PT_ADDR (4)], %1