From 4fdfc7059acae36de8d4c8b6b50ff207c69ad0d4 Mon Sep 17 00:00:00 2001 From: Glenn Hope Date: Sat, 29 Aug 2020 10:34:51 -0700 Subject: [PATCH] Add foreign exception function --- psp/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/psp/src/lib.rs b/psp/src/lib.rs index ee149efa..65c2cc40 100644 --- a/psp/src/lib.rs +++ b/psp/src/lib.rs @@ -54,6 +54,9 @@ pub mod sys; #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } +#[no_mangle] +extern "C" fn __rust_foreign_exception() -> ! { loop {} } + #[cfg(feature = "std")] pub use std::panic::catch_unwind;