]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg/ArmVirtQemu: use first 128 MiB as permanent PEI memory
authorArd Biesheuvel <ardb@kernel.org>
Sat, 2 Jul 2022 17:24:13 +0000 (19:24 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 26 Oct 2022 17:28:39 +0000 (17:28 +0000)
commita26050f74dfe865fb4e7bd39d412250d6eabb8e8
tree8680605a428d09fbce922586702c249c235a9ba5
parent2eff4ddc77874b8e5088b08c52f2e94491f745f2
ArmVirtPkg/ArmVirtQemu: use first 128 MiB as permanent PEI memory

In order to allow booting with the MMU and caches enabled really early,
we need to ensure that the code that populates the page tables can
access those page tables with the statically defined ID map active.

So let's put the permanent PEI RAM in the first 128 MiB of memory, which
we will cover with this initial ID map (as it is the minimum supported
DRAM size for ArmVirtQemu).

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
ArmVirtPkg/MemoryInitPei/MemoryInitPeim.c [new file with mode: 0644]
ArmVirtPkg/MemoryInitPei/MemoryInitPeim.inf [new file with mode: 0644]