score: Add RTEMS_FATAL_SOURCE_EXIT

Include <bsp/default-initial-extension.h> 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().
This commit is contained in:
Sebastian Huber
2012-11-14 09:59:10 +01:00
parent 038e2f4a88
commit a052181ca2
104 changed files with 287 additions and 108 deletions

View File

@@ -30,7 +30,6 @@ libbsp_a_SOURCES =
# startup
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
../shared/startup/bspfatalextension.c \
../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \

View File

@@ -25,6 +25,7 @@ extern "C" {
#endif
#include <bspopts.h>
#include <bsp/default-initial-extension.h>
#include <rtems.h>
#include <leon.h>
@@ -32,8 +33,6 @@ extern "C" {
#include <rtems/console.h>
#include <rtems/irq-extension.h>
#include <bsp/default-initial-extension.h>
/* SPARC CPU variant: LEON3 */
#define LEON3 1
@@ -46,6 +45,8 @@ void *bsp_idle_thread( uintptr_t ignored );
/* Maximum supported APBUARTs by BSP */
#define BSP_NUMBER_OF_TERMIOS_PORTS 8
#define BSP_RESET_BOARD_AT_EXIT 1
/*
* Network driver configuration
*/