mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-25 08:59:32 +08:00
smp: Simplify main CPU initialization
Call _SMP_Handler_initialize() later and move bsp_smp_initialize() into _SMP_Handler_initialize(). Change bsp_smp_initialize() prototype to match integer types of calling context.
This commit is contained in:
@@ -119,10 +119,6 @@ void rtems_initialize_data_structures(void)
|
||||
|
||||
_Thread_Dispatch_initialization();
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
_SMP_Handler_initialize();
|
||||
#endif
|
||||
|
||||
_User_extensions_Handler_initialization();
|
||||
_ISR_Handler_initialization();
|
||||
|
||||
@@ -159,12 +155,8 @@ void rtems_initialize_data_structures(void)
|
||||
_POSIX_API_Initialize();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Discover and initialize the secondary cores in an SMP system.
|
||||
*/
|
||||
#if defined(RTEMS_SMP)
|
||||
_SMP_Processor_count =
|
||||
bsp_smp_initialize( rtems_configuration_get_maximum_processors() );
|
||||
_SMP_Handler_initialize();
|
||||
#endif
|
||||
|
||||
_System_state_Set( SYSTEM_STATE_BEFORE_MULTITASKING );
|
||||
|
||||
Reference in New Issue
Block a user