-use super::usercalls::alloc::UserRef;
+use super::usercalls::{alloc::UserRef, self};
use cmp;
use io::{self, Write};
use mem;
#[no_mangle]
pub extern "C" fn panic_msg(msg: &str) -> ! {
let _ = SgxPanicOutput::new().map(|mut out| out.write(msg.as_bytes()));
- unsafe { usercall_exit(true); }
+ usercalls::exit(true)
}
-
-extern "C" { pub fn usercall_exit(panic: bool) -> !; }