diff options
Diffstat (limited to 'plat/arm/board/juno/juno_err.c')
-rw-r--r-- | plat/arm/board/juno/juno_err.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plat/arm/board/juno/juno_err.c b/plat/arm/board/juno/juno_err.c index 700b96cb..961bfda1 100644 --- a/plat/arm/board/juno/juno_err.c +++ b/plat/arm/board/juno/juno_err.c @@ -7,6 +7,7 @@ #include <errno.h> #include <arch_helpers.h> +#include <drivers/arm/sp805.h> #include <plat/arm/common/plat_arm.h> #include <plat/common/platform.h> #include <platform_def.h> @@ -21,7 +22,9 @@ void __dead2 plat_arm_error_handler(int err) /* Propagate the err code in the NV-flags register */ *flags_ptr = err; - /* Loop until the watchdog resets the system */ + /* Setup the watchdog to reset the system as soon as possible */ + sp805_refresh(ARM_SP805_TWDG_BASE, 1U); + for (;;) wfi(); } |