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/powerpc/psim | |
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/powerpc/psim')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/include/bsp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/include/bsp.h b/c/src/lib/libbsp/powerpc/psim/include/bsp.h index a90aecb77a..e3e4c9ca0f 100644 --- a/c/src/lib/libbsp/powerpc/psim/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/psim/include/bsp.h @@ -36,6 +36,8 @@ extern "C" { #include <bspopts.h> +#define BSP_RESET_BOARD_AT_EXIT 1 + #ifdef ASM /* Definition of where to store registers in alignment handler */ #define ALIGN_REGS 0x0140 @@ -47,6 +49,7 @@ extern "C" { #include <rtems/clockdrv.h> #include <rtems/iosupp.h> #include <bsp/vectors.h> +#include <bsp/default-initial-extension.h> /* Constants */ |