From 7e32b62a59ae91d67096c03b592dfd691ab32214 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 17 Nov 2012 12:31:22 +0100 Subject: 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. --- cpukit/score/include/rtems/score/interr.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/score/include/rtems/score/interr.h') 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 @@ -97,6 +97,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. * -- cgit v1.2.3