]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/AcpiTableDxe: use pool allocations when possible
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Fri, 16 Oct 2020 14:36:08 +0000 (16:36 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 30 Oct 2020 14:50:33 +0000 (14:50 +0000)
commit0e0ae47da6bdd2852e601a4a8f92fea93037cd7e
tree4f463883cc3783e65b866d1046139d7f4524d7b4
parent8cadcaa13d882816052ad4dec77faddd44a1c108
MdeModulePkg/AcpiTableDxe: use pool allocations when possible

On AArch64 systems, page based allocations for memory types that are
relevant to the OS are rounded up to 64 KB multiples. This wastes
some space in the ACPI table memory allocator, since it uses page
based allocations in order to be able to place the ACPI tables low
in memory.

Since the latter requirement does not exist on AArch64, switch to pool
allocations for all ACPI tables except the root tables if the active
allocation policy permits them to be anywhere in memory. The root
tables will be handled in a subsequent patch.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.c
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTable.h
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableProtocol.c