]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c
ArmPkg/ArmMmuLib: Revert "use a pool allocation for the root table"
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 20 Jan 2017 16:44:35 +0000 (16:44 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 20 Jan 2017 17:50:40 +0000 (17:50 +0000)
commitaa961dea1e199d23d9b7681f970ee023a856d0e5
tree3c1cf07e1f16123109b31ef4a92ecd39a99d7881
parent734bd6cc41097bde7cc7d54084a042ff9b0ca0f5
ArmPkg/ArmMmuLib: Revert "use a pool allocation for the root table"

This reverts commit d32702d2c2aa23e828363a7f88829b78ce36c3af.

Using a pool allocation for the root translation table seemed like
a good idea at the time, but as it turns out, such allocations are
handled in a way that makes them unsuitable for this purpose: they
are backed by HOBs that don't remain in the same place during the
various PI phase changes, which means the address programmed into
the TTBR register is no longer valid, and may refer to memory that
is reported as available to the OS.

So switch back to using a page based allocation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c