mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +00:00
refactor virtio code; APIC , console interrupt support
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user