diff options
author | Laszlo Ersek <lersek@redhat.com> | 2018-03-28 13:26:35 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2018-03-28 15:07:18 +0200 |
commit | c27c0003c10f0eba04a69dbadb5d4186ea79167e (patch) | |
tree | 9484c3cb768d9926ed89ab85cc812acc7e525b6c /OvmfPkg/PlatformPei/MemDetect.c | |
parent | b90c335fbbb674470fbf09601cc522bf61564c30 (diff) | |
download | edk2-c27c0003c10f0eba04a69dbadb5d4186ea79167e.tar.gz edk2-c27c0003c10f0eba04a69dbadb5d4186ea79167e.tar.bz2 edk2-c27c0003c10f0eba04a69dbadb5d4186ea79167e.zip |
OvmfPkg/PlatformPei: debug log "etc/reserved-memory-end" from fw_cfg
QEMU calculates the UINT64 value in "etc/reserved-memory-end" in a quite
complex way, in the pc_memory_init() function. Log the value as a
DEBUG_VERBOSE message to support debugging.
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1353591
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'OvmfPkg/PlatformPei/MemDetect.c')
-rw-r--r-- | OvmfPkg/PlatformPei/MemDetect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetect.c index 2b2f3e4bec..2f9e835513 100644 --- a/OvmfPkg/PlatformPei/MemDetect.c +++ b/OvmfPkg/PlatformPei/MemDetect.c @@ -358,6 +358,8 @@ GetFirstNonAddress ( if (!EFI_ERROR (Status) && FwCfgSize == sizeof HotPlugMemoryEnd) {
QemuFwCfgSelectItem (FwCfgItem);
QemuFwCfgReadBytes (FwCfgSize, &HotPlugMemoryEnd);
+ DEBUG ((DEBUG_VERBOSE, "%a: HotPlugMemoryEnd=0x%Lx\n", __FUNCTION__,
+ HotPlugMemoryEnd));
ASSERT (HotPlugMemoryEnd >= FirstNonAddress);
FirstNonAddress = HotPlugMemoryEnd;
|