diff --git a/src/lib.rs b/src/lib.rs index a69051c..c765f32 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,6 +41,6 @@ pub extern "C" fn kernel_main() -> ! { // TODO: When display output is coded, make sure panic outputs panic information. // ! You can ignore any errors that appear in IDE, we do not use std. #[panic_handler] -pub extern "Rust" fn panic(_info: &PanicInfo) -> ! { +pub fn panic(_info: &PanicInfo) -> ! { loop {} } diff --git a/src/peripheral/drivers/timer/util.rs b/src/peripheral/drivers/timer/util.rs index 888a528..0507fe4 100644 --- a/src/peripheral/drivers/timer/util.rs +++ b/src/peripheral/drivers/timer/util.rs @@ -5,6 +5,8 @@ use super::timer_value; pub fn wait_nanos(nanos: u32) { unsafe { let start: u32 = timer_value(); - while timer_value() < (start + nanos) { hint::spin_loop() } + while timer_value() < (start + nanos) { + hint::spin_loop() + } } -} \ No newline at end of file +}