mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-22 14:18:55 +08:00
smp: Move secondary CPU initialization request
Do not assume that the scheduler selects the main processor for the initialization thread.
This commit is contained in:
@@ -223,6 +223,10 @@ void rtems_initialize_start_multitasking(void)
|
||||
|
||||
_System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING );
|
||||
|
||||
#ifdef RTEMS_SMP
|
||||
_SMP_Request_other_cores_to_perform_first_context_switch();
|
||||
#endif
|
||||
|
||||
_Thread_Start_multitasking();
|
||||
|
||||
/*******************************************************************
|
||||
|
||||
@@ -126,12 +126,6 @@ void _Thread_Handler( void )
|
||||
*/
|
||||
if (doCons) /* && (volatile void *)_init) */ {
|
||||
INIT_NAME ();
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
_Thread_Disable_dispatch();
|
||||
_SMP_Request_other_cores_to_perform_first_context_switch();
|
||||
_Thread_Enable_dispatch();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user