diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-02-28 12:13:11 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-08 09:50:00 +0100 |
commit | 25549bda46c581271a303840fb266539c00ede71 (patch) | |
tree | 91a303cc5b08c9ae1e4e9a1b8bf35c15ab9ed58c /BaseTools/Source/Python/sitecustomize.py | |
parent | bb52ec2d6b76b043cd70f277887519f09f36b55a (diff) | |
download | edk2-25549bda46c581271a303840fb266539c00ede71.tar.gz edk2-25549bda46c581271a303840fb266539c00ede71.tar.bz2 edk2-25549bda46c581271a303840fb266539c00ede71.zip |
ArmPkg/UncachedMemoryAllocationLib: use CWG value to align pool allocations
Uncached pool allocations are aligned to the data cache line length under
the assumption that this is sufficient to prevent cache maintenance from
corrupting adjacent allocations. However, the value to use in such cases
is architecturally called the Cache Writeback Granule (CWG), which is
essentially the maximum Dcache line length rather than the minimum.
Note that this is mostly a cosmetical fix, given that the pool allocation
is turned into a page allocation later, and rounded up accordingly.
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/sitecustomize.py')
0 files changed, 0 insertions, 0 deletions