Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
079e522d
Commit
079e522d
authored
Aug 19, 2016
by
danh-arm
Committed by
GitHub
Aug 19, 2016
Browse files
Merge pull request #687 from sandrine-bailleux-arm/sb/panic-handler
Add WFI in platform's unexpected error handlers
parents
efc759ad
8c9e1af0
Changes
3
Hide whitespace changes
Inline
Side-by-side
plat/arm/board/fvp/fvp_err.c
View file @
079e522d
/*
/*
* 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
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* modification, are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include <arch_helpers.h>
#include <board_arm_def.h>
#include <board_arm_def.h>
#include <debug.h>
#include <debug.h>
#include <errno.h>
#include <errno.h>
...
@@ -61,5 +62,5 @@ void plat_error_handler(int err)
...
@@ -61,5 +62,5 @@ void plat_error_handler(int err)
/* Loop until the watchdog resets the system */
/* Loop until the watchdog resets the system */
for
(;;)
for
(;;)
;
wfi
()
;
}
}
plat/arm/board/juno/juno_err.c
View file @
079e522d
/*
/*
* 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
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* modification, are permitted provided that the following conditions are met:
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include <arch_helpers.h>
#include <errno.h>
#include <errno.h>
#include <v2m_def.h>
#include <v2m_def.h>
...
@@ -45,5 +46,5 @@ void plat_error_handler(int err)
...
@@ -45,5 +46,5 @@ void plat_error_handler(int err)
/* Loop until the watchdog resets the system */
/* Loop until the watchdog resets the system */
for
(;;)
for
(;;)
;
wfi
()
;
}
}
plat/common/aarch64/platform_helpers.S
View file @
079e522d
...
@@ -130,6 +130,7 @@ endfunc bl1_plat_prepare_exit
...
@@ -130,6 +130,7 @@ endfunc bl1_plat_prepare_exit
*
-----------------------------------------------------
*
-----------------------------------------------------
*/
*/
func
plat_error_handler
func
plat_error_handler
wfi
b
plat_error_handler
b
plat_error_handler
endfunc
plat_error_handler
endfunc
plat_error_handler
...
@@ -139,5 +140,6 @@ endfunc plat_error_handler
...
@@ -139,5 +140,6 @@ endfunc plat_error_handler
*
-----------------------------------------------------
*
-----------------------------------------------------
*/
*/
func
plat_panic_handler
func
plat_panic_handler
wfi
b
plat_panic_handler
b
plat_panic_handler
endfunc
plat_panic_handler
endfunc
plat_panic_handler
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment