]> git.proxmox.com Git - mirror_edk2.git/commit - ArmVirtPkg/Library/ArmPlatformLibQemu/IdMap.S
ArmVirtPkg/ArmVirtQemu: implement ArmPlatformLib with static ID map
authorArd Biesheuvel <ardb@kernel.org>
Sat, 2 Jul 2022 17:19:05 +0000 (19:19 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 26 Oct 2022 17:28:39 +0000 (17:28 +0000)
commit2eff4ddc77874b8e5088b08c52f2e94491f745f2
tree98f0a5a0dba61639752f2495639e9eef7e86d80f
parent9ca2dc7bec4dc8672953ae644a32749ad1516640
ArmVirtPkg/ArmVirtQemu: implement ArmPlatformLib with static ID map

To substantially reduce the amount of processing that takes place with
the MMU and caches off, implement a version of ArmPlatformLib specific
for QEMU/mach-virt in AArch64 mode that carries a statically allocated
and populated ID map that covers the NOR flash and device region, and
128 MiB of DRAM at the base of memory (0x4000_0000).

Note that 128 MiB has always been the minimum amount of DRAM we support
for this configuration, and the existing code already ASSERT()s in DEBUG
mode when booting with less.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
ArmVirtPkg/Library/ArmPlatformLibQemu/AArch64/ArmPlatformHelper.S [new file with mode: 0644]
ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.c [new file with mode: 0644]
ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.inf [new file with mode: 0644]
ArmVirtPkg/Library/ArmPlatformLibQemu/IdMap.S [new file with mode: 0644]