From f8957735356d3e1d3aab1b3fee974970a0df1228 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 6 Jul 2020 13:07:52 +0800 Subject: [PATCH] runtime: do not use slcr soft_reset in panic --- src/runtime/src/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/src/panic.rs b/src/runtime/src/panic.rs index b49ba56..287ec16 100644 --- a/src/runtime/src/panic.rs +++ b/src/runtime/src/panic.rs @@ -21,6 +21,6 @@ fn panic(info: &core::panic::PanicInfo) -> ! { println!("{:#08x}", ip - 2 * 4); }); println!("End backtrace"); - slcr::RegisterBlock::unlocked(|slcr| slcr.soft_reset()); + loop {} }