From 45ed5f6c5bba4f88b44035148893e3985a3a15e1 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 19 Aug 2019 00:14:43 +0200 Subject: [PATCH] abort handlers: replace panic with infinite loop --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2392ddc..5ee2ee5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -171,10 +171,12 @@ fn panic(info: &core::panic::PanicInfo) -> ! { #[no_mangle] pub unsafe extern "C" fn PrefetchAbort() { - panic!("PrefetchAbort"); + println!("PrefetchAbort"); + loop {} } #[no_mangle] pub unsafe extern "C" fn DataAbort() { - panic!("DataAbort"); + println!("DataAbort"); + loop {} }