Skip to content

Commit f4db122

Browse files
committed
panic_abort: call __rust_abort on xous
Xous does not properly handle invalid instructions. Instead, call `__rust_abort` and exit normally. Signed-off-by: Sean Cross <[email protected]>
1 parent e0da598 commit f4db122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/panic_abort/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ pub unsafe fn __rust_start_panic(_payload: *mut &mut dyn BoxMeUp) -> u32 {
4242
libc::abort();
4343
}
4444
} else if #[cfg(any(target_os = "hermit",
45-
all(target_vendor = "fortanix", target_env = "sgx")
45+
all(target_vendor = "fortanix", target_env = "sgx"),
46+
target_os = "xous"
4647
))] {
4748
unsafe fn abort() -> ! {
4849
// call std::sys::abort_internal

0 commit comments

Comments
 (0)