diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-14 10:12:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-29 11:06:07 +0200 |
commit | baf8f4dabc12bc9ff64354e832a06dd5aa03e484 (patch) | |
tree | a0f742b9eaff5dfeb03d0a74f9b51eeb7e9aa100 /cpukit/sapi | |
parent | smp: Make CPU_ALLOCATE_INTERRUPT_STACK optional (diff) | |
download | rtems-baf8f4dabc12bc9ff64354e832a06dd5aa03e484.tar.bz2 |
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.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r-- | cpukit/sapi/src/exinit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index a0abe111ab..3fb27fdfa0 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -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 ); |