diff options
author | Jeff Brasen <jbrasen@nvidia.com> | 2023-05-15 23:48:56 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-31 14:40:50 +0000 |
commit | aa8431822b7631659586247b1e50d21126f3cfcc (patch) | |
tree | 4a0a8afbd31e0c964859dd4cabd7757a46a60042 /MdeModulePkg/MdeModulePkg.dec | |
parent | a671a14e63fdaa9490e5c61cf11346416f1d1463 (diff) | |
download | edk2-aa8431822b7631659586247b1e50d21126f3cfcc.tar.gz edk2-aa8431822b7631659586247b1e50d21126f3cfcc.tar.bz2 edk2-aa8431822b7631659586247b1e50d21126f3cfcc.zip |
MdeModulePkg/DxeCore: Allow relocation of images with large address
Add PCD to control if modules with start addresses in PE/COFF > 0x100000
attempt to load at specified address.
If a module has an address in this range and there is untested memory
DxeCore will attempt to promote all memory to tested which bypasses any
memory testing that would occur later in boot.
There are several existing AARCH64 option roms that have base addresses
of 0x180000000.
Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Ashish Singhal <ashishsingha@nvidia.com>
Message-Id: <bd36c9c24158590db2226ede05cb8c2f50c93a37.1684194452.git.jbrasen@nvidia.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg/MdeModulePkg.dec')
-rw-r--r-- | MdeModulePkg/MdeModulePkg.dec | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index dd182c02fd..d2fede4f87 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -1125,6 +1125,13 @@ # @Prompt Output MMIO address of Trace Hub message.
gEfiMdeModulePkgTokenSpaceGuid.PcdTraceHubDebugMmioAddress|0|UINT64|0x30001058
+ ## Indicates if images with large load address (>0x100000) should attempted to load at specified location.
+ # If enabled, attempt to allocate at specfied location will be attempted with a fall back to any address.
+ # TRUE - UEFI will attempt to load at specified location.<BR>
+ # FALSE - UEFI will load at any address<BR>
+ # @Prompt Enable large address image loading.
+ gEfiMdeModulePkgTokenSpaceGuid.PcdImageLargeAddressLoad|TRUE|BOOLEAN|0x30001059
+
[PcdsFixedAtBuild, PcdsPatchableInModule]
## Dynamic type PCD can be registered callback function for Pcd setting action.
# PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function
|