From 600ffccf1a06153255658fd956229f5e68cb6a9f Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 4 Jun 2017 11:29:45 -0500 Subject: [PATCH] add a hlt-loop in _Unwind_Resume() --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 05cb5d5..2e29e61 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,6 +51,5 @@ pub extern fn panic_fmt(fmt: core::fmt::Arguments, file: &'static str, line: u32 #[allow(non_snake_case)] #[no_mangle] pub extern "C" fn _Unwind_Resume() -> ! { - // we should hlt here - loop {} + unsafe{loop{x86::shared::halt();}}; }