Browse Source

add a hlt-loop in _Unwind_Resume()

master
3moon 8 years ago
parent
commit
600ffccf1a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/lib.rs

+ 1
- 2
src/lib.rs View File

@ -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();}};
}

Loading…
Cancel
Save