Skip to content

Commit 5a2edad

Browse files
committed
change arceos ref; add do_register_lower_aarch64_irq_handler(todo)
modify some code format; change arceos ref change arceos ref
1 parent 40db4c1 commit 5a2edad

File tree

6 files changed

+26
-20
lines changed

6 files changed

+26
-20
lines changed

Cargo.lock

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arceos-vmm/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ lazy_static = { version = "1.4", features = ["spin_no_std"] }
1313
cfg-if = "1.0"
1414

1515
# System dependent modules provided by ArceOS.
16-
axalloc = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "fc85e16" }
17-
axhal = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "fc85e16", features = ["paging"] }
18-
axstd = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "fc85e16", features = [
16+
axalloc = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "5c9ee79" }
17+
axhal = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "5c9ee79", features = ["paging"] }
18+
axstd = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "5c9ee79", features = [
1919
"alloc",
2020
"paging",
2121
"fs",

crates/axvm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tock-registers = "0.8.1"
4242
memoffset = { version = ">=0.6.5", features = ["unstable_const"] }
4343

4444
[target.'cfg(target_arch = "aarch64")'.dependencies]
45-
axhal = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "fc85e16", features = ["hv"] }
45+
axhal = { git = "https://github.com/arceos-hypervisor/arceos.git", rev = "5c9ee79", features = ["hv"] }
4646
cortex-a = "8.1.1"
4747
aarch64-cpu = "9.3"
4848
smccc = "0.1.1"

crates/axvm/src/arch/aarch64/mod.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mod vcpu;
1010
use core::arch::asm;
1111
use spin::once::Once;
1212

13-
use axhal::arch::register_lower_aarch64_synchronous_handler;
13+
use axhal::arch::{register_lower_aarch64_irq_handler, register_lower_aarch64_synchronous_handler};
1414

1515
pub use self::device_list::AxArchDeviceList;
1616
pub use self::pcpu::PerCpu as AxVMArchPerCpuImpl;
@@ -36,3 +36,8 @@ pub fn do_register_lower_aarch64_synchronous_handler() -> AxResult {
3636
}
3737
return Ok(());
3838
}
39+
40+
pub fn do_register_lower_aarch64_irq_handler() -> AxResult {
41+
// TODO
42+
Ok(())
43+
}

crates/axvm/src/arch/aarch64/vcpu.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ use aarch64_cpu::registers::*;
88
use tock_registers::interfaces::*;
99

1010
use super::context_frame::VmContext;
11-
use super::do_register_lower_aarch64_synchronous_handler;
1211
use super::exception_utils::*;
1312
use super::sync::{data_abort_handler, hvc_handler};
1413
use super::ContextFrame;
14+
use super::{do_register_lower_aarch64_irq_handler, do_register_lower_aarch64_synchronous_handler};
1515
use axerrno::{AxError, AxResult};
1616

1717
use crate::AxVMHal;
@@ -78,6 +78,7 @@ impl<H: AxVMHal> axvcpu::AxArchVCpu for VCpu<H> {
7878

7979
fn setup(&mut self, _config: Self::SetupConfig) -> AxResult {
8080
do_register_lower_aarch64_synchronous_handler()?;
81+
do_register_lower_aarch64_irq_handler()?;
8182
self.init_hv();
8283
Ok(())
8384
}

crates/axvm/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub struct AxVMCrateConfig {
177177
pub dtb_load_addr: Option<usize>,
178178
pub ramdisk_path: Option<String>,
179179
pub ramdisk_load_addr: Option<usize>,
180-
180+
181181
disk_path: Option<String>,
182182

183183
/// Memory Information

0 commit comments

Comments
 (0)