forked from Imagelibrary/rtems
_SMP_Start_multitasking_on_secondary_processor()
Pass current processor control as first parameter to make dependency more explicit.
This commit is contained in:
@@ -109,7 +109,7 @@ arm_a9mpcore_start_on_secondary_processor(void)
|
||||
ctrl |= ARM_CP15_CTRL_I | ARM_CP15_CTRL_C | ARM_CP15_CTRL_M;
|
||||
arm_cp15_set_control(ctrl);
|
||||
|
||||
_SMP_Start_multitasking_on_secondary_processor();
|
||||
_SMP_Start_multitasking_on_secondary_processor(_Per_CPU_Get());
|
||||
}
|
||||
|
||||
BSP_START_TEXT_SECTION static inline void
|
||||
|
||||
@@ -77,5 +77,5 @@ void rpi_start_rtems_on_secondary_processor(void)
|
||||
ctrl &= ~ARM_CP15_CTRL_V;
|
||||
arm_cp15_set_control(ctrl);
|
||||
|
||||
_SMP_Start_multitasking_on_secondary_processor();
|
||||
_SMP_Start_multitasking_on_secondary_processor(_Per_CPU_Get());
|
||||
}
|
||||
|
||||
@@ -794,7 +794,7 @@ static void secondary_cpu_initialize(void)
|
||||
enable_sse();
|
||||
#endif
|
||||
|
||||
_SMP_Start_multitasking_on_secondary_processor();
|
||||
_SMP_Start_multitasking_on_secondary_processor( _Per_CPU_Get() );
|
||||
}
|
||||
|
||||
uint32_t _CPU_SMP_Initialize( void )
|
||||
|
||||
@@ -53,7 +53,7 @@ void qoriq_start_thread(Per_CPU_Control *cpu_self)
|
||||
|
||||
bsp_interrupt_facility_initialize();
|
||||
|
||||
_SMP_Start_multitasking_on_secondary_processor();
|
||||
_SMP_Start_multitasking_on_secondary_processor(cpu_self);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -93,7 +93,7 @@ void bsp_start_on_secondary_processor(Per_CPU_Control *cpu_self)
|
||||
cpu_index_self = _Per_CPU_Get_index(cpu_self);
|
||||
start_thread_if_necessary(cpu_index_self);
|
||||
|
||||
_SMP_Start_multitasking_on_secondary_processor();
|
||||
_SMP_Start_multitasking_on_secondary_processor(cpu_self);
|
||||
}
|
||||
|
||||
#ifndef QORIQ_IS_HYPERVISOR_GUEST
|
||||
|
||||
@@ -52,7 +52,7 @@ void bsp_start_on_secondary_processor(Per_CPU_Control *cpu_self)
|
||||
cpu_index_self = _Per_CPU_Get_index(cpu_self);
|
||||
LEON3_IrqCtrl_Regs->mask[cpu_index_self] |= 1U << LEON3_mp_irq;
|
||||
|
||||
_SMP_Start_multitasking_on_secondary_processor();
|
||||
_SMP_Start_multitasking_on_secondary_processor(cpu_self);
|
||||
}
|
||||
|
||||
uint32_t _CPU_SMP_Initialize( void )
|
||||
|
||||
Reference in New Issue
Block a user