Skip to content

Commit e5edb7c

Browse files
committed
fix: update aarch64-cpu dependency to version 11.0 and add CpuHal trait for interrupt handling
1 parent 077e76b commit e5edb7c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ version = "0.1.1"
1919
log = "0.4"
2020
spin = "0.10"
2121

22-
aarch64-cpu = "10.0"
22+
aarch64-cpu = "11.0"
2323
numeric-enum-macro = "0.2"
2424

2525
axerrno = "0.1.0"
2626
percpu = {version = "0.2.0", features = ["arm-el2"]}
2727

2828
axaddrspace = "0.2"
29-
axdevice_base = "0.1.0"
3029
axvcpu = "0.1.0"
3130
axvisor_api = "0.1.0"

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ pub fn has_hardware_support() -> bool {
3030
// Current just return true by default.
3131
true
3232
}
33+
34+
pub trait CpuHal {
35+
fn inject_interrupt(irq: usize);
36+
}

0 commit comments

Comments
 (0)