summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Common
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-09-09 10:52:25 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-09-13 13:42:57 +0100
commite93cb72e597df7b37aad7910787b8ecaeac31382 (patch)
tree619edd9cc706d557b3049f69161c85e6a1d6fa11 /BaseTools/Source/Python/Common
parentb6b33f67dfc6e81dbbdd10c102f2665e7472cd4d (diff)
downloadedk2-platforms-e93cb72e597df7b37aad7910787b8ecaeac31382.tar.xz
ArmPkg/ArmMmuLib: deobfuscate GetRootTranslationTableInfo ()
The relations between T0SZ, the number of translation levels and the size/alignment of the root table can be expressed in simple arithmetic expressions, so get rid of the lookup table. Note that this disregards the fact that the maximum value of T0SZ is 39 not 42 (as one would expect for the smallest VA size using 2 levels) but since this corresponds to a VA size of 32 MB and 4 MB, respectively, neither of which are sufficient to run UEFI, we can safely ignore the distinction. 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/Common')
0 files changed, 0 insertions, 0 deletions