forked from Imagelibrary/rtems
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:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user