We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e0a438 commit b3d6bbfCopy full SHA for b3d6bbf
1 file changed
src/lib.rs
@@ -494,9 +494,13 @@ pub extern "C" fn main(api: &'static bios::Api) -> ! {
494
#[panic_handler]
495
fn panic(info: &core::panic::PanicInfo) -> ! {
496
println!("PANIC!\n{:#?}", info);
497
- use core::sync::atomic::{self, Ordering};
498
loop {
499
- atomic::compiler_fence(Ordering::SeqCst);
+ for ch in "|/-\\".chars() {
+ print!("\r{}", ch);
500
+ if let Some(api) = unsafe { API } {
501
+ (api.delay)(neotron_common_bios::Timeout::new_ms(100));
502
+ }
503
504
}
505
506
0 commit comments