From 2d5c35b0d326f261f209656b822ed6de2ed76585 Mon Sep 17 00:00:00 2001 From: aarkegz Date: Wed, 18 Dec 2024 12:52:28 +0800 Subject: [PATCH] add stubs for riscv64 --- .../axhal/src/platform/riscv64_qemu_virt/irq.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs b/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs index d46dfb3015..937cff1117 100644 --- a/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs +++ b/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs @@ -83,3 +83,19 @@ pub(super) fn init_percpu() { sie::set_sext(); } } + +#[cfg(feature = "ipi")] +mod ipi { + pub const IPI_IRQ_NUM: usize = 0; + + pub fn send_sgi_one(_dest_cpu: usize, _irq_num: usize) { + unimplemented!() + } + + pub fn send_sgi_all(_irq_num: usize) { + unimplemented!() + } +} + +#[cfg(feature = "ipi")] +pub use ipi::*;