mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-27 23:18:54 +08:00
bsps/arm: Invalidate branch predictors earlier
Make sure the branch predictors are invalidated before the first branch is executed. Update #4202.
This commit is contained in:
@@ -141,8 +141,6 @@ BSP_START_TEXT_SECTION static inline void arm_a9mpcore_start_hook_0(void)
|
||||
(volatile a9mpcore_scu *) BSP_ARM_A9MPCORE_SCU_BASE;
|
||||
uint32_t cpu_id = arm_cortex_a9_get_multiprocessor_cpu_id();
|
||||
|
||||
arm_cp15_branch_predictor_invalidate_all();
|
||||
|
||||
if (cpu_id == 0) {
|
||||
arm_a9mpcore_start_scu_enable(scu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user