Skip to content

Commit

Permalink
fix rt_hw_secondary_cpu_bsp_start() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liYony committed May 1, 2024
1 parent 2c9b7c1 commit 9e38bae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libcpu/aarch64/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <stdlib.h>
#include <ioremap.h>
#include <rtdevice.h>
#include <gic.h>
#include <gicv3.h>

#define SIZE_KB 1024
#define SIZE_MB (1024 * SIZE_KB)
Expand Down Expand Up @@ -497,7 +499,13 @@ rt_weak void rt_hw_secondary_cpu_bsp_start(void)
#ifdef RT_USING_PIC
rt_pic_irq_init();
#else
rt_hw_interrupt_init();
/* initialize vector table */
rt_hw_vector_init();

arm_gic_cpu_init(0, 0);
#ifdef BSP_USING_GICV3
arm_gic_redist_init(0, 0);
#endif /* BSP_USING_GICV3 */
#endif

rt_dm_secondary_cpu_init();
Expand Down

0 comments on commit 9e38bae

Please sign in to comment.