summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Include
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-01-07 08:15:01 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-01-29 11:24:02 +0100
commitd5788777bcc75936cc0e6acb540a5ee6ac77866b (patch)
tree3662febef191bf6e83feb297e1462169e03555c5 /ArmPkg/Include
parentf34b38fae614c096d9c6afdc02b8448ff38134cd (diff)
downloadedk2-d5788777bcc75936cc0e6acb540a5ee6ac77866b.tar.gz
edk2-d5788777bcc75936cc0e6acb540a5ee6ac77866b.tar.bz2
edk2-d5788777bcc75936cc0e6acb540a5ee6ac77866b.zip
ArmPkg/ArmMmuLib AARCH64: get rid of needless TLB invalidation
Currently, we always invalidate the TLBs entirely after making any modification to the page tables. Now that we have introduced strict memory permissions in quite a number of places, such modifications occur much more often, and it is better for performance to flush only those TLB entries that are actually affected by the changes. At the same time, relax some system wide data synchronization barriers to non-shared. When running in UEFI, we don't share virtual address translations with other masters, unless we are running under virt, but in that case, the host will upgrade them as appropriate (by setting an override at EL2) Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPkg/Include')
-rw-r--r--ArmPkg/Include/Library/ArmMmuLib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ArmPkg/Include/Library/ArmMmuLib.h b/ArmPkg/Include/Library/ArmMmuLib.h
index fb7fd00641..220039a779 100644
--- a/ArmPkg/Include/Library/ArmMmuLib.h
+++ b/ArmPkg/Include/Library/ArmMmuLib.h
@@ -59,7 +59,8 @@ VOID
EFIAPI
ArmReplaceLiveTranslationEntry (
IN UINT64 *Entry,
- IN UINT64 Value
+ IN UINT64 Value,
+ IN UINT64 RegionStart
);
EFI_STATUS