summaryrefslogtreecommitdiff
path: root/plat/common
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2016-08-18 09:24:40 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2016-08-19 14:04:03 +0100
commit8c9e1af0b5df7ee1ff32e6192ee0252315900895 (patch)
tree1fa817bf424b2e234230ae48bd2bb09567fba91d /plat/common
parent974603b554a71872d8e0a4aca02ba9cf73b1c3fe (diff)
Add WFI in platform's unexpected error handlers
This patch adds a WFI instruction in the default implementations of plat_error_handler() and plat_panic_handler(). This potentially reduces power consumption by allowing the hardware to enter a low-power state. The same change has been made to the FVP and Juno platform ports. Change-Id: Ia4e6e1e5bf1ed42efbba7d0ebbad7be8d5f9f173
Diffstat (limited to 'plat/common')
-rw-r--r--plat/common/aarch64/platform_helpers.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/common/aarch64/platform_helpers.S b/plat/common/aarch64/platform_helpers.S
index 08638303..a134ded0 100644
--- a/plat/common/aarch64/platform_helpers.S
+++ b/plat/common/aarch64/platform_helpers.S
@@ -130,6 +130,7 @@ endfunc bl1_plat_prepare_exit
* -----------------------------------------------------
*/
func plat_error_handler
+ wfi
b plat_error_handler
endfunc plat_error_handler
@@ -139,5 +140,6 @@ endfunc plat_error_handler
* -----------------------------------------------------
*/
func plat_panic_handler
+ wfi
b plat_panic_handler
endfunc plat_panic_handler