From 514705d2f106375ff54d8a744dabeab97c71144d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 12 Feb 2014 16:05:35 +0100 Subject: score: Delete _Thread_BSP_context Do not return to BSP context in the exit() shutdown path. This makes it possible to re-use the initialization stack. It can be used for the interrupt stack for example. On targets with a small RAM this is a considerable benefit. This change eliminates also some special cases and simplifies the code. Delete _Thread_Set_global_exit_status(), _Thread_Get_global_exit_status() and _Thread_Stop_multitasking(). --- cpukit/sapi/src/exinit.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'cpukit/sapi/src/exinit.c') diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 10c1559936..e8b009ba60 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -215,25 +214,20 @@ void rtems_initialize_device_drivers(void) void rtems_initialize_start_multitasking(void) { - uint32_t status; - _System_state_Set( SYSTEM_STATE_UP ); #if defined(RTEMS_SMP) _SMP_Request_other_cores_to_perform_first_context_switch(); #endif - _Thread_Start_multitasking( &_Thread_BSP_context ); + _Thread_Start_multitasking(); /******************************************************************* ******************************************************************* ******************************************************************* ****** APPLICATION RUNS HERE ****** - ****** RETURNS WHEN SYSTEM IS SHUT DOWN ****** + ****** THE FUNCTION NEVER RETURNS ****** ******************************************************************* ******************************************************************* *******************************************************************/ - - status = _Thread_Get_global_exit_status(); - rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status ); } -- cgit v1.2.3