arch: riscv: smp: define MSIP_BASE
Instead of relying on definitions included indirectly. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
7af4f7eb8a
commit
a5ded8aa9f
|
@ -79,7 +79,8 @@ void arch_secondary_cpu_init(int hartid)
|
|||
|
||||
#ifdef CONFIG_SMP
|
||||
|
||||
#define MSIP(hartid) ((volatile uint32_t *)RISCV_MSIP_BASE)[hartid]
|
||||
#define MSIP_BASE 0x2000000UL
|
||||
#define MSIP(hartid) ((volatile uint32_t *)MSIP_BASE)[hartid]
|
||||
|
||||
static atomic_val_t cpu_pending_ipi[CONFIG_MP_MAX_NUM_CPUS];
|
||||
#define IPI_SCHED 0
|
||||
|
|
|
@ -8,7 +8,4 @@
|
|||
|
||||
#include <zephyr/devicetree.h>
|
||||
|
||||
|
||||
#define RISCV_MSIP_BASE 0x02000000
|
||||
|
||||
#endif /* __RISCV64_MPFS_SOC_H_ */
|
||||
|
|
|
@ -8,6 +8,5 @@
|
|||
#define __RISCV_VIRT_SOC_H_
|
||||
|
||||
#define SIFIVE_SYSCON_TEST 0x00100000
|
||||
#define RISCV_MSIP_BASE 0x02000000
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue