summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Table/TablePcd.py
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-09-09 09:50:21 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-09-13 13:43:11 +0100
commitd32702d2c2aa23e828363a7f88829b78ce36c3af (patch)
tree4271ebae9e1e0a204acb5985640cede95670c8ed /BaseTools/Source/Python/Table/TablePcd.py
parent674e127ef64b07a1e6e6bcc5ecbaead50ea81134 (diff)
downloadedk2-platforms-d32702d2c2aa23e828363a7f88829b78ce36c3af.tar.xz
ArmPkg/ArmMmuLib: use a pool allocation for the root table
Currently, we allocate a full page for the root translation table, even if the configured translation only requires two entries (16 bytes) for the root level, which happens to be the case for a 40 bit VA. Likewise, for a 36-bit VA space, the root table only needs 16 entries of 8 bytes each, adding up to 128 bytes. So switch to a pool allocation for the root table if we can, but take into account that the architecture requires it to be naturally aligned to its size, i.e., a 64 byte table requires 64 byte alignment, whereas pool allocations in general are only guaranteed to be aligned to 8 bytes. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/Table/TablePcd.py')
0 files changed, 0 insertions, 0 deletions