summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2020-03-05 12:42:15 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-06 00:08:30 +0300
commit825c3e2c1b5d61c2b290c0dfc9a7d6a1ff0e8e4c (patch)
tree750ca673b868d8583dc7c1cf49206bd9555fa644 /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
parenteaaaece4ad455aca9bac3f719b8280f52f9d1893 (diff)
downloadedk2-825c3e2c1b5d61c2b290c0dfc9a7d6a1ff0e8e4c.tar.xz
ArmPkg/ArmMmuLib ARM: use AllocateAlignedPages() for alignment
Instead of overallocating memory and align the resulting base address manually, use the AllocateAlignedPages () helper, which achieves the same, and might even manage that without leaking a chunk of memory of the same size as the allocation itself. While at it, fix up a variable declaration in the same hunk, and drop a comment whose contents add nothing to the following line of code. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
0 files changed, 0 insertions, 0 deletions