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 /testsuites/samples/minimum/init.c | |
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 'testsuites/samples/minimum/init.c')
-rw-r--r-- | testsuites/samples/minimum/init.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c index 77cef53348..43cb467c8e 100644 --- a/testsuites/samples/minimum/init.c +++ b/testsuites/samples/minimum/init.c @@ -13,8 +13,6 @@ * http://www.rtems.com/license/LICENSE. */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -39,21 +37,6 @@ rtems_task Init( /* configuration information */ /* - * This fatal extension adds some bytes to the absolute minimum, but it - * prevents the _CPU_Fatal_halt(). - */ -static void Fatal_extension( - uint32_t source, - bool is_internal, - uint32_t error -) -{ - _Thread_Stop_multitasking(); -} - -#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = Fatal_extension } - -/* * This application has no device drivers. */ /* NOTICE: the clock driver is explicitly disabled */ |