audk/ArmPlatformPkg
Michael Kubacki 7da3dcd45d ArmPlatformPkg/MemoryInitPei: Remove Non-RT Types from Mem Type Info HOB
Removes the following types from the memory type information HOBs
produced in the MemoryInitPei code:

- `EfiBootServicesCode`
- `EfiBootServicesData`
- `EfiLoaderCode`
- `EfiLoaderData`

Our platform has a memory type information validation routine that
currently expects those types to be excluded as they would not impact
the UEFI memory map since they are not runtime memory types.

This follows the guidance in the whitepaper "A Tour Beyond BIOS
Memory Map and Practices in UEFI BIOS".

https://github.com/tianocore-docs/Docs/raw/master/White_Papers/A_Tour_Beyond_BIOS_Memory_Map_And_Practices_in_UEFI_BIOS_V2.pdf

"NOTE: We recommend a platform only define the ReservedMemory,
ACPINvs, ACPIReclaim,  RuntimeCode, RuntimeData in Memory Type
Information table, because OSes only request  these regions to be
consistent. There is no need to add BootServicesCode,
BootServicesData, LoaderCode, LoaderData in memory type information
table, because these regions will not be reserved during S4 resume."

Since these memory types are not tracked in memory type information
any longer it also reduces the number of resets that may need to
occur to update memory type buckets that are not needed.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2024-11-11 16:45:29 +00:00
..
Drivers ArmPlatformPkg: CodeQL Fixes. 2024-10-30 19:13:09 +00:00
Include/Library ArmPlatformPkg/ArmPlatformLib: Drop unused MPCore routines 2024-08-30 08:01:28 +00:00
Library ArmPlatformPkg: CodeQL Fixes. 2024-10-30 19:13:09 +00:00
MemoryInitPei ArmPlatformPkg/MemoryInitPei: Remove Non-RT Types from Mem Type Info HOB 2024-11-11 16:45:29 +00:00
PeilessSec MdePkg: Move AsmMacroIoLib*.h from ArmPkg 2024-09-12 19:36:59 +00:00
PlatformPei ArmPlatformPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Scripts ArmPlatformPkg: Remove RVCT support 2022-05-13 14:58:54 +00:00
Sec MdePkg: Move AsmMacroIoLib*.h from ArmPkg 2024-09-12 19:36:59 +00:00
ArmPlatformPkg.ci.yaml ArmPlatformPkg/ArmPlatformPkg.ci.yaml: Add PrEval CI config 2024-09-02 23:20:35 +00:00
ArmPlatformPkg.dec ArmPlatformPkg/PrePi: Drop secondary stack handling 2024-08-01 14:55:03 +00:00
ArmPlatformPkg.dsc ArmPlatformPkg: Add Null Stack Check Lib 2024-09-13 03:58:46 +00:00
SecureBootDefaultKeys.fdf.inc ArmPlatformPkg: Create include file for default key content. 2021-08-03 07:26:41 +00:00