diff options
| author | Sami Mujawar <sami.mujawar@arm.com> | 2023-03-13 18:07:41 +0300 |
|---|---|---|
| committer | Sami Mujawar <sami.mujawar@arm.com> | 2026-08-27 11:44:17 +0300 |
| commit | 43e8f7386d9db4a40d66cae061f99e54f4ce2ab5 (patch) | |
| tree | 15ea3d6ab96bea87a1f68ef804003313d3bb71b2 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h | |
| parent | 32c6128b1e62cd08298e5a8346dc6b2d14260433 (diff) | |
| download | edk2-43e8f7386d9db4a40d66cae061f99e54f4ce2ab5.tar.xz | |
ArmVirtPkg: Kvmtool: Use Null version of DebugLib in PrePi
The patch at "6c8a08bd8a680 ArmVirtPkg/PrePi: Ensure timely
execution of library constructors" moved the processing of
library constructors before the MMU is initialised.
This resulted in the BaseDebugLibSerialPort library constructor
BaseDebugLibSerialPortConstructor () which initialises the serial
port, being invoked before the MMU is enabled.
However, the Realm code requires the protection attribute of
the MMIO regions to be configured as unprotected (shared with
the host), which requires the MMU to be enabled. Otherwise,
accesses to the MMIO region result in a synchronous external
abort being reflected to the Realm by the RMM.
Therefore, link the Null version of DebugLib in PrePi stage.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Leif Lindholm <leif.lindholm@oss.qualcomm.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions
