diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-14 09:59:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-15 15:33:12 +0100 |
commit | a052181ca2e243540342315cde990b9471331a8e (patch) | |
tree | 2e8dfd9152bfc1d37fcb05f58de9d6b0e80eb8b3 /c/src/lib/libbsp/sparc/erc32 | |
parent | score: Add RTEMS_FATAL_SOURCE_APPLICATION (diff) | |
download | rtems-a052181ca2e243540342315cde990b9471331a8e.tar.bz2 |
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().
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32')
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/Makefile.am | 1 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/include/bsp.h | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/Makefile.am b/c/src/lib/libbsp/sparc/erc32/Makefile.am index 4f23ff1d41..ddb8d94c3b 100644 --- a/c/src/lib/libbsp/sparc/erc32/Makefile.am +++ b/c/src/lib/libbsp/sparc/erc32/Makefile.am @@ -29,7 +29,6 @@ libbsp_a_SOURCES = # startup libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ - ../shared/startup/bspfatalextension.c \ startup/bsppredriver.c ../../sparc/shared/bspgetworkarea.c \ ../../sparc/shared/bsppretaskinghook.c ../../shared/bsppost.c \ ../../shared/bspstart.c ../../shared/bootcard.c ../../shared/bspinit.c \ diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h b/c/src/lib/libbsp/sparc/erc32/include/bsp.h index 3fb9f13e93..5b3731da0d 100644 --- a/c/src/lib/libbsp/sparc/erc32/include/bsp.h +++ b/c/src/lib/libbsp/sparc/erc32/include/bsp.h @@ -25,6 +25,7 @@ extern "C" { #endif #include <bspopts.h> +#include <bsp/default-initial-extension.h> #include <rtems.h> #include <rtems/iosupp.h> @@ -33,8 +34,6 @@ extern "C" { #include <rtems/console.h> #include <rtems/irq-extension.h> -#include <bsp/default-initial-extension.h> - /* * BSP provides its own Idle thread body */ @@ -53,6 +52,8 @@ extern int rtems_erc32_sonic_driver_attach( /* Constants */ +#define BSP_RESET_BOARD_AT_EXIT 1 + /* * Information placed in the linkcmds file. */ |