]> git.proxmox.com Git - mirror_edk2.git/commit - ArmVirtPkg/ArmVirtQemuKernel.dsc
ArmVirtPkg/ArmVirtQemu: add ArmVirtMemInfoLib implementation
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 17 Nov 2017 14:00:03 +0000 (14:00 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 23 Nov 2017 16:52:55 +0000 (16:52 +0000)
commit30436034013d20863102ecbab4c9dccd2d284490
tree7926fa0e00c13e391f2801c8f5b4b6960d225ec4
parent496cf19ac262dcc37a60652b535d725652947f3b
ArmVirtPkg/ArmVirtQemu: add ArmVirtMemInfoLib implementation

Create a new ArmVirtMemInfoLib for ArmVirtQemuKernel by cloning the
existing ArmPlatformGetVirtualMemoryMap () for this platform,
(ArmQemuRelocatablePlatformLib *not* ArmVirtPlatformLib), and cleaning
it up:
- remove support for uncached DRAM mappings
- replace EFI_D_xxx with DEBUG_xxx throughout
- use a temp variable to hold the top of the physical address space
- use AllocatePool () instead of AllocatePages (), given that we use
  160 bytes only, and the memory is never freed.

In a future patch, we will add this library to the ordinary ArmVirtQemu
platform as well.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/ArmVirtQemuKernel.dsc
ArmVirtPkg/Library/QemuVirtMemInfoLib/AArch64/PhysAddrTop.S [new file with mode: 0644]
ArmVirtPkg/Library/QemuVirtMemInfoLib/Arm/PhysAddrTop.S [new file with mode: 0644]
ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c [new file with mode: 0644]
ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf [new file with mode: 0644]