summaryrefslogtreecommitdiff
path: root/plat/arm/board/juno/juno_err.c
diff options
context:
space:
mode:
authordanh-arm <dan.handley@arm.com>2016-08-19 15:31:36 +0100
committerGitHub <noreply@github.com>2016-08-19 15:31:36 +0100
commit079e522d39715c39a9d5f23832d09ccdda5dfcd5 (patch)
tree3e4233741b28f7cd7a9a8b88538c1de0035f5071 /plat/arm/board/juno/juno_err.c
parentefc759ad82b0acd87ffbf019fd65e54e1abf1db5 (diff)
parent8c9e1af0b5df7ee1ff32e6192ee0252315900895 (diff)
Merge pull request #687 from sandrine-bailleux-arm/sb/panic-handler
Add WFI in platform's unexpected error handlers
Diffstat (limited to 'plat/arm/board/juno/juno_err.c')
-rw-r--r--plat/arm/board/juno/juno_err.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plat/arm/board/juno/juno_err.c b/plat/arm/board/juno/juno_err.c
index 497cc7fa..fa19da76 100644
--- a/plat/arm/board/juno/juno_err.c
+++ b/plat/arm/board/juno/juno_err.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -28,6 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <arch_helpers.h>
#include <errno.h>
#include <v2m_def.h>
@@ -45,5 +46,5 @@ void plat_error_handler(int err)
/* Loop until the watchdog resets the system */
for (;;)
- ;
+ wfi();
}