riscv: add functions for reading the IPI status
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Sun, 8 Dec 2019 22:28:50 +0000 (23:28 +0100)
committerAndes <uboot@andestech.com>
Tue, 10 Dec 2019 00:23:10 +0000 (08:23 +0800)
commit8b3e97badf97d6e399014fb4a152031f8a0c94ba
tree63c6e428e63506f5c1010b905159c67b178332f0
parentb86f6d1e649f237849297b5ec6b5566b7a92b2b4
riscv: add functions for reading the IPI status

Add the function riscv_get_ipi() for reading the pending status of IPIs.
The supported controllers are Andes' Platform Level Interrupt Controller
(PLIC), the Supervisor Binary Interface (SBI), and SiFive's Core Local
Interruptor (CLINT).

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/lib/andes_plic.c
arch/riscv/lib/sbi_ipi.c
arch/riscv/lib/sifive_clint.c
arch/riscv/lib/smp.c