summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-14 09:59:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-15 15:33:12 +0100
commita052181ca2e243540342315cde990b9471331a8e (patch)
tree2e8dfd9152bfc1d37fcb05f58de9d6b0e80eb8b3 /testsuites
parentscore: Add RTEMS_FATAL_SOURCE_APPLICATION (diff)
downloadrtems-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')
-rw-r--r--testsuites/psxtests/psxfatal_support/init.c3
-rw-r--r--testsuites/samples/minimum/init.c17
-rw-r--r--testsuites/sptests/spfatal_support/init.c3
3 files changed, 0 insertions, 23 deletions
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c
index abd9a00ded..ee1e33e708 100644
--- a/testsuites/psxtests/psxfatal_support/init.c
+++ b/testsuites/psxtests/psxfatal_support/init.c
@@ -133,8 +133,5 @@ void Fatal_extension(
) {
printk( "*** END OF TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
}
-
- if ( _System_state_Is_up( _System_state_Get() ) )
- _Thread_Stop_multitasking();
}
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 */
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c
index c9fb7f75df..5554e88762 100644
--- a/testsuites/sptests/spfatal_support/init.c
+++ b/testsuites/sptests/spfatal_support/init.c
@@ -135,8 +135,5 @@ void Fatal_extension(
) {
printk( "*** END OF TEST FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
}
-
- if ( _System_state_Is_up( _System_state_Get() ) )
- _Thread_Stop_multitasking();
}