summaryrefslogtreecommitdiff
path: root/arch/riscv/lib/sbi_ipi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/lib/sbi_ipi.c')
-rw-r--r--arch/riscv/lib/sbi_ipi.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/lib/sbi_ipi.c b/arch/riscv/lib/sbi_ipi.c
index 170346da68..9a698ce74e 100644
--- a/arch/riscv/lib/sbi_ipi.c
+++ b/arch/riscv/lib/sbi_ipi.c
@@ -23,3 +23,14 @@ int riscv_clear_ipi(int hart)
return 0;
}
+
+int riscv_get_ipi(int hart, int *pending)
+{
+ /*
+ * The SBI does not support reading the IPI status. We always return 0
+ * to indicate that no IPI is pending.
+ */
+ *pending = 0;
+
+ return 0;
+}