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 dc93ad7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 28 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 }
2 changes: 1 addition & 1 deletion examples/helloworld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ authors = ["Yuekai Jia <[email protected]>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
axstd = { workspace = true,features = ["irq"], optional = true }
axstd = { workspace = true, features = ["irq"], optional = true }
8 changes: 4 additions & 4 deletions modules/axhal/src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ cfg_if::cfg_if! {
mod aarch64_rk3588j;
pub use self::aarch64_rk3588j::*;
} else {
// mod dummy;
// pub use self::dummy::*;
mod riscv64_qemu_virt;
pub use self::riscv64_qemu_virt::*;
mod dummy;
pub use self::dummy::*;
// mod riscv64_qemu_virt;
// pub use self::riscv64_qemu_virt::*;
}
}
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 dc93ad7

Please sign in to comment.