runtime: advise to set panic_reboot=1 on panic.

This commit is contained in:
whitequark 2017-04-15 07:29:21 +00:00
parent 0b9601f12d
commit ea753bed17
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ pub extern fn panic_fmt(args: core::fmt::Arguments, file: &'static str, line: u3
println!("rebooting..."); println!("rebooting...");
unsafe { board::boot::reboot() } unsafe { board::boot::reboot() }
} else { } else {
println!("halting.");
println!("use `artiq_coreconfig write -s panic_reboot 1` to reboot instead");
loop {} loop {}
} }
} }