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

View File

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