summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLauren Wehrmeister <lauren.wehrmeister@arm.com>2023-01-26 21:18:22 +0100
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2023-01-26 21:18:22 +0100
commitfc3bdab9852fc6603bdd3b89f99fe5b155db6b6d (patch)
tree6230981ab2c5c0ff20cf90863357585b6f156845 /lib
parentd127d747643828b3845e9b84431c882727c6337d (diff)
parent695a48b5b4366d1005f8b9a0fc83726914668fb5 (diff)
downloadarm-trusted-firmware-fc3bdab9852fc6603bdd3b89f99fe5b155db6b6d.tar.gz
Merge "fix(psci): tighten psci_power_down_wfi behaviour" into integration
Diffstat (limited to 'lib')
-rw-r--r--lib/psci/aarch32/psci_helpers.S5
-rw-r--r--lib/psci/aarch64/psci_helpers.S5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/psci/aarch32/psci_helpers.S b/lib/psci/aarch32/psci_helpers.S
index 5cc192e66..d28d469f3 100644
--- a/lib/psci/aarch32/psci_helpers.S
+++ b/lib/psci/aarch32/psci_helpers.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2023, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -143,6 +143,7 @@ endfunc do_stack_maintenance
*/
func psci_power_down_wfi
dsb sy // ensure write buffer empty
+1:
wfi
- no_ret plat_panic_handler
+ b 1b
endfunc psci_power_down_wfi
diff --git a/lib/psci/aarch64/psci_helpers.S b/lib/psci/aarch64/psci_helpers.S
index add968a7b..0bb19884f 100644
--- a/lib/psci/aarch64/psci_helpers.S
+++ b/lib/psci/aarch64/psci_helpers.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2014-2023, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -125,6 +125,7 @@ endfunc psci_do_pwrup_cache_maintenance
*/
func psci_power_down_wfi
dsb sy // ensure write buffer empty
+1:
wfi
- no_ret plat_panic_handler
+ b 1b
endfunc psci_power_down_wfi