Skip to content

Commit 71fe5ca

Browse files
committed
add ipi-related stubs to dummy platform
1 parent e50e8e0 commit 71fe5ca

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

modules/axhal/src/platform/dummy/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ pub mod irq {
8787
pub fn fetch_irq() -> usize {
8888
0
8989
}
90+
91+
#[cfg(feature = "ipi")]
92+
pub const IPI_IRQ_NUM: usize = 0;
93+
94+
#[cfg(feature = "ipi")]
95+
pub fn send_sgi_one(dest_cpu: usize, irq_num: usize) {}
96+
97+
#[cfg(feature = "ipi")]
98+
pub fn send_sgi_all(irq_num: usize) {}
9099
}
91100

92101
/// Initializes the platform devices for the primary CPU.

modules/axipi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ lazyinit = { version = "0.2" }
1919
percpu = { version = "0.1.6" }
2020
kspin = { version = "0.1" }
2121

22-
axhal = { workspace = true }
22+
axhal = { workspace = true, features = ["ipi"] }
2323
axconfig = { workspace = true }

0 commit comments

Comments
 (0)