summaryrefslogtreecommitdiff
path: root/lib/psci/aarch64/psci_helpers.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psci/aarch64/psci_helpers.S')
-rw-r--r--lib/psci/aarch64/psci_helpers.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/psci/aarch64/psci_helpers.S b/lib/psci/aarch64/psci_helpers.S
index afe21ebe..713cac8b 100644
--- a/lib/psci/aarch64/psci_helpers.S
+++ b/lib/psci/aarch64/psci_helpers.S
@@ -106,6 +106,7 @@ func psci_do_pwrup_cache_maintenance
mov x0, sp
bl inv_dcache_range
+#if !BL31_CACHE_DISABLE
/* ---------------------------------------------
* Enable the data cache.
* ---------------------------------------------
@@ -114,6 +115,7 @@ func psci_do_pwrup_cache_maintenance
orr x0, x0, #SCTLR_C_BIT
msr sctlr_el3, x0
isb
+#endif
ldp x29, x30, [sp], #16
ret