Skip to content

Commit

Permalink
fixes after cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
aarkegz committed Dec 18, 2024
1 parent 97748ce commit a1c704e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 23 deletions.
1 change: 0 additions & 1 deletion api/arceos_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
2 changes: 0 additions & 2 deletions api/arceos_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
1 change: 0 additions & 1 deletion api/axfeat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
22 changes: 3 additions & 19 deletions modules/axhal/src/platform/riscv64_qemu_virt/irq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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::*;

0 comments on commit a1c704e

Please sign in to comment.