summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bspclean.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/shared/bspclean.c')
-rw-r--r--c/src/lib/libbsp/shared/bspclean.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/shared/bspclean.c b/c/src/lib/libbsp/shared/bspclean.c
index 1d6f08a274..3e48c2993d 100644
--- a/c/src/lib/libbsp/shared/bspclean.c
+++ b/c/src/lib/libbsp/shared/bspclean.c
@@ -16,7 +16,7 @@
void bsp_fatal_extension(
rtems_fatal_source source,
bool is_internal,
- rtems_fatal_code error
+ rtems_fatal_code code
)
{
#if (BSP_PRESS_KEY_FOR_RESET)
@@ -31,6 +31,12 @@ void bsp_fatal_extension(
printk("\n");
#endif
+ #if (BSP_PRINT_EXCEPTION_CONTEXT)
+ if ( source == RTEMS_FATAL_SOURCE_EXCEPTION ) {
+ rtems_exception_frame_print( (const rtems_exception_frame *) code );
+ }
+ #endif
+
/*
* Check both conditions -- if you want to ask for reboot, then
* you must have meant to reset the board.