diff --git a/api/arceos_api/Cargo.toml b/api/arceos_api/Cargo.toml index 3a283853f8..2dcdd1a623 100644 --- a/api/arceos_api/Cargo.toml +++ b/api/arceos_api/Cargo.toml @@ -21,7 +21,6 @@ multitask = ["axtask/multitask", "axsync/multitask", "axfeat/multitask"] fs = ["dep:axfs", "dep:axdriver", "axfeat/fs"] net = ["dep:axnet", "dep:axdriver", "axfeat/net"] display = ["dep:axdisplay", "dep:axdriver", "axfeat/display"] -ipi = ["dep:axipi", "axfeat/ipi"] myfs = ["axfeat/myfs"] diff --git a/api/arceos_api/src/lib.rs b/api/arceos_api/src/lib.rs index 778da1da84..98529e18c8 100644 --- a/api/arceos_api/src/lib.rs +++ b/api/arceos_api/src/lib.rs @@ -392,8 +392,6 @@ pub mod modules { pub use axruntime; pub use axsync; - #[cfg(feature = "ipi")] - pub use axipi; #[cfg(feature = "alloc")] pub use axalloc; #[cfg(feature = "display")] diff --git a/api/axfeat/Cargo.toml b/api/axfeat/Cargo.toml index 433ee78199..6f08cbe98a 100644 --- a/api/axfeat/Cargo.toml +++ b/api/axfeat/Cargo.toml @@ -81,4 +81,3 @@ axsync = { workspace = true, optional = true } axtask = { workspace = true, optional = true } axipi = { workspace = true, optional = true } kspin = { version = "0.1", optional = true } -axipi = { workspace = true, optional = true } diff --git a/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs b/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs index 634a7f02de..feaeabaeae 100644 --- a/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs +++ b/modules/axhal/src/platform/riscv64_qemu_virt/irq.rs @@ -66,9 +66,9 @@ pub const TIMER_IRQ_NUM: usize = S_TIMER; pub const IPI_IRQ_NUM: usize = S_SOFT; macro_rules! with_cause { - ($cause: expr, - @TIMER => $timer_op: expr, - @IPI => $ipi_op: expr, + ($cause: expr, + @TIMER => $timer_op: expr, + @IPI => $ipi_op: expr, @EXT => $ext_op: expr $(,)?) => { match $cause { S_TIMER => $timer_op, @@ -177,19 +177,3 @@ 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::*;