summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/src/exshutdown.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-17 10:17:20 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-19 09:59:39 +0100
commitb39e055a492cade3e6614b9434c4f5b6bd848960 (patch)
tree7800f0256f8f0521c4d7631e9b35f5f460caf8f2 /cpukit/sapi/src/exshutdown.c
parentscore: Move _SMP_Request_other_cores_to_shutdown() (diff)
downloadrtems-b39e055a492cade3e6614b9434c4f5b6bd848960.tar.bz2
score: Delete INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP
This error case is no longer required since rtems_shutdown_executive() can be called anytime, anywhere
Diffstat (limited to 'cpukit/sapi/src/exshutdown.c')
-rw-r--r--cpukit/sapi/src/exshutdown.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c
index 80848f0953..8b0b149d4b 100644
--- a/cpukit/sapi/src/exshutdown.c
+++ b/cpukit/sapi/src/exshutdown.c
@@ -14,26 +14,11 @@
#endif
#include <rtems/init.h>
-#include <rtems/score/sysstate.h>
#include <rtems/score/interr.h>
void rtems_shutdown_executive( uint32_t result )
{
- Internal_errors_Source source;
- bool is_internal;
- Internal_errors_t code;
-
- if ( _System_state_Is_up( _System_state_Get() ) ) {
- source = RTEMS_FATAL_SOURCE_EXIT;
- is_internal = false;
- code = result;
- } else {
- source = INTERNAL_ERROR_CORE;
- is_internal = true;
- code = INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP;
- }
-
- _Internal_error_Occurred( source, is_internal, code );
+ _Internal_error_Occurred( RTEMS_FATAL_SOURCE_EXIT, false, result );
/***************************************************************
***************************************************************