diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-17 12:31:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-21 16:38:28 +0100 |
commit | 7e32b62a59ae91d67096c03b592dfd691ab32214 (patch) | |
tree | 94b4398d93cef2f50c804aee0c80100c37708ac9 /cpukit/score/include/rtems | |
parent | libnetworking: Use rtems_clock_get_uptime_seconds (diff) | |
download | rtems-7e32b62a59ae91d67096c03b592dfd691ab32214.tar.bz2 |
score: Add RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION
Add ppc_exc_print_frame_and_context() which prints an exception frame
and the context via printk().
The global exception handler will call now rtems_fatal() with source
RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION. The fatal code will contain the
pointer value to the exception frame.
Diffstat (limited to 'cpukit/score/include/rtems')
-rw-r--r-- | cpukit/score/include/rtems/score/interr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h index 94306b59a5..b92b5be040 100644 --- a/cpukit/score/include/rtems/score/interr.h +++ b/cpukit/score/include/rtems/score/interr.h @@ -98,6 +98,15 @@ typedef enum { RTEMS_FATAL_SOURCE_STACK_CHECKER, /** + * @brief Fatal source of the PowerPC exceptions. + * + * The fatal code is the pointer value of the exception frame pointer. + * + * @see BSP_Exception_frame. + */ + RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION, + + /** * @brief The last available fatal source. * * This enum value ensures that the enum type needs at least 32-bits for |