soc: common: riscv-privileged: add riscv_clic_irq_vector_set() for clic
Introduce riscv_clic_irq_vector_set() to implement z_riscv_irq_vector_set() for CLIC. This commit also introduces CONFIG_CLIC_SMCLICSHV_EXT to indicate support for the smclicshv extenion and riscv_clic_irq_vector_set(). Signed-off-by: Jimmy Zheng <jimmyzhe@andestech.com>
This commit is contained in:
parent
9ec596674b
commit
91e524862d
3 changed files with 23 additions and 0 deletions
|
@ -37,6 +37,15 @@ void z_riscv_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flag
|
|||
riscv_clic_irq_priority_set(irq, prio, flags);
|
||||
}
|
||||
|
||||
void z_riscv_irq_vector_set(unsigned int irq)
|
||||
{
|
||||
#if defined(CONFIG_CLIC_SMCLICSHV_EXT)
|
||||
riscv_clic_irq_vector_set(irq);
|
||||
#else
|
||||
ARG_UNUSED(irq);
|
||||
#endif
|
||||
}
|
||||
|
||||
#else /* PLIC + HLINT/CLINT or HLINT/CLINT only */
|
||||
|
||||
void arch_irq_enable(unsigned int irq)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue