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