forked from Imagelibrary/rtems
bsps/arm: Cortex-A9 MPCore start
Enable SCU only on the boot processor.
This commit is contained in:
@@ -143,16 +143,16 @@ BSP_START_TEXT_SECTION static inline void arm_a9mpcore_start_hook_0(void)
|
|||||||
{
|
{
|
||||||
volatile a9mpcore_scu *scu =
|
volatile a9mpcore_scu *scu =
|
||||||
(volatile a9mpcore_scu *) BSP_ARM_A9MPCORE_SCU_BASE;
|
(volatile a9mpcore_scu *) BSP_ARM_A9MPCORE_SCU_BASE;
|
||||||
uint32_t cpu_id;
|
uint32_t cpu_id = arm_cortex_a9_get_multiprocessor_cpu_id();
|
||||||
|
|
||||||
arm_a9mpcore_start_scu_enable(scu);
|
if (cpu_id == 0) {
|
||||||
|
arm_a9mpcore_start_scu_enable(scu);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef RTEMS_SMP
|
#ifdef RTEMS_SMP
|
||||||
arm_a9mpcore_start_enable_smp_in_auxiliary_control();
|
arm_a9mpcore_start_enable_smp_in_auxiliary_control();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cpu_id = arm_cortex_a9_get_multiprocessor_cpu_id();
|
|
||||||
|
|
||||||
arm_a9mpcore_start_scu_invalidate(scu, cpu_id, 0xf);
|
arm_a9mpcore_start_scu_invalidate(scu, cpu_id, 0xf);
|
||||||
|
|
||||||
#ifdef RTEMS_SMP
|
#ifdef RTEMS_SMP
|
||||||
|
|||||||
Reference in New Issue
Block a user