diff options
| author | Sami Mujawar <sami.mujawar@arm.com> | 2026-07-22 13:07:31 +0300 |
|---|---|---|
| committer | Ard Biesheuvel <ardb@kernel.org> | 2026-08-28 10:54:12 +0300 |
| commit | aeed0402046772c26fdac55a20541e9a3c4780a5 (patch) | |
| tree | 0ea87af1e5adbebd5d6378798d883537bc55638c /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | 158c1b614bb01a1e4cf72096dd54b749f1b702ca (diff) | |
| download | edk2-aeed0402046772c26fdac55a20541e9a3c4780a5.tar.xz | |
ArmVirtPkg: Map QEMU fw_cfg MMIO region in PEI
Get the QEMU fw_cfg MMIO range from the device tree and add it
to the PEI virtual memory map. This ensures the fw_cfg selector
and data registers are mapped as device memory before
PlatformPei initialises the PEIM instance of QemuFwCfgLib.
Without this mapping, accessing the fw_cfg selector can trigger a
synchronous exception during PEI on ArmVirtQemu.
Note: The PlatformPeiLib calls QemuFwCfgGetAsString() to read
the "opt/org.tianocore/DebugLevel", which results in the
QemuFwCfgMmioPeiLib constructor QemuFwCfgInitialize() being
invoked that accesses the fw_cfg MMIO range.
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions
