lib: sbi: Add a simple external interrupt handling framework
authorAnup Patel <apatel@ventanamicro.com>
Fri, 18 Feb 2022 17:48:41 +0000 (23:18 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Feb 2022 04:13:12 +0000 (09:43 +0530)
commitf3f4604c196dea70b0bb64aba747aa6d7a9e244f
treefb57357531b34399cb0b5e2a77f280ebee781c44
parentf2ccf2f783b43e8ca2b42cdeade7663599284a86
lib: sbi: Add a simple external interrupt handling framework

Currently, the external interrupt handling is scattered between
sbi_init and sbi_trap. This patch moves all external interrupt
handling into a simple framework called sbi_irqchip.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
include/sbi/sbi_irqchip.h [new file with mode: 0644]
include/sbi/sbi_trap.h
lib/sbi/objects.mk
lib/sbi/sbi_init.c
lib/sbi/sbi_irqchip.c [new file with mode: 0644]
lib/sbi/sbi_trap.c
lib/utils/irqchip/imsic.c