refactor virtio code; APIC , console interrupt support

This commit is contained in:
Yuke Peng
2022-12-26 04:33:27 -08:00
parent 1d401fd8fc
commit 46497554d2
48 changed files with 2365 additions and 548 deletions

View File

@ -28,10 +28,7 @@ fn panic(info: &PanicInfo) -> ! {
#[test_case]
fn test_timer() {
println!(
"If you want to pass this test, you may need to enable the interrupt in jinux_frame/lib.rs"
);
println!("make sure the Timer irq number 32 handler won't panic");
jinux_frame::enable_interrupts();
unsafe {
let timer = Timer::new(timer_callback).unwrap();
timer.set(Duration::from_secs(1));