From 6bf0e079303545ad6dd314ce3e7cb3a11dcec413 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Mon, 19 Feb 2018 13:53:48 +0000 Subject: Ensure the correct execution of TLBI instructions After executing a TLBI a DSB is needed to ensure completion of the TLBI. rk3328: The MMU is allowed to load TLB entries for as long as it is enabled. Because of this, the correct place to execute a TLBI is right after disabling the MMU. Change-Id: I8280f248d10b49a8c354a4ccbdc8f8345ac4c170 Signed-off-by: Antonio Nino Diaz --- services/std_svc/spm/secure_partition_setup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'services') diff --git a/services/std_svc/spm/secure_partition_setup.c b/services/std_svc/spm/secure_partition_setup.c index c1f0edf6..6998dae5 100644 --- a/services/std_svc/spm/secure_partition_setup.c +++ b/services/std_svc/spm/secure_partition_setup.c @@ -54,6 +54,7 @@ void secure_partition_setup(void) /* Invalidate TLBs at EL1. */ tlbivmalle1(); + dsbish(); /* * General-Purpose registers -- cgit v1.2.3