mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 19:33:23 +00:00
Extract RTC out of framework
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b02b29dde7
commit
bed56703de
@ -26,7 +26,7 @@ fn panic(info: &PanicInfo) -> ! {
|
||||
|
||||
#[test_case]
|
||||
fn test_timer() {
|
||||
jinux_frame::enable_interrupts();
|
||||
x86_64::instructions::interrupts::enable();
|
||||
unsafe {
|
||||
let timer = Timer::new(timer_callback).unwrap();
|
||||
timer.set(Duration::from_secs(1));
|
||||
|
Reference in New Issue
Block a user