From a052181ca2e243540342315cde990b9471331a8e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 14 Nov 2012 09:59:10 +0100 Subject: score: Add RTEMS_FATAL_SOURCE_EXIT Include in all BSPs. Call rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit() status code as fatal code in every bsp_cleanup(). Move previous bsp_cleanup() code into bsp_fatal_extension(). --- cpukit/score/include/rtems/score/interr.h | 7 +++++++ 1 file changed, 7 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 e5003a948c..0668915b38 100644 --- a/cpukit/score/include/rtems/score/interr.h +++ b/cpukit/score/include/rtems/score/interr.h @@ -59,6 +59,13 @@ typedef enum { */ RTEMS_FATAL_SOURCE_APPLICATION, + /** + * @brief Fatal source of exit(). + * + * The fatal code is the exit() status code. + */ + RTEMS_FATAL_SOURCE_EXIT, + /** * @brief The last available fatal source. * -- cgit v1.2.3