-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: riscv: smp: refactor IPI functions and guard with "sifive,clint0"
Currently, the RISC-V SMP IPI implementation is CLINT-based. However, IPI in RISC-V is not necessarily always done through a CLINT, in SoC with PLIC connected to the MSIP (i.e. Andes AE350), IPI has to be routed through the PLIC. This patch refactor the IPI delivery into functions and guard it with `DT_HAS_COMPAT_STATUS_OKAY(sifive_clint0)`, so that for SoC that do not have a `sifive,clint0` device, and has a different IPI mechanism, they can implement their own `z_riscv_ipi_send()` & `z_riscv_ipi_clear()`. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
- Loading branch information
Showing
1 changed file
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters