lib: sbi: Add sbi_trap_set_external_irqfn() API
authorAnup Patel <apatel@ventanamicro.com>
Tue, 6 Apr 2021 11:37:42 +0000 (17:07 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 15 Feb 2022 15:03:55 +0000 (20:33 +0530)
commit222132f48c8efd3b2c84b0883df18216b170bf3d
tree8e034d195e217a8a11cc95bcd8de9a0ae701bc49
parent65b4c7c01e7447c4d762af905a5051e13361b31e
lib: sbi: Add sbi_trap_set_external_irqfn() API

This patch adds sbi_trap_set_external_irqfn() API which can be used by
OpenSBI platform code to set a callback function for external interrupts.
The RISC-V AIA IMSIC driver will use this API to implement inter-processor
interrupts on-top-of MSIs.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
include/sbi/sbi_trap.h
lib/sbi/sbi_trap.c