mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
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 <sean@xobs.io>
This commit is contained in:
parent
823cba9cc8
commit
dfff5bf62f
@ -43,7 +43,8 @@ pub unsafe fn __rust_start_panic(_payload: &mut dyn BoxMeUp) -> u32 {
|
|||||||
libc::abort();
|
libc::abort();
|
||||||
}
|
}
|
||||||
} else if #[cfg(any(target_os = "hermit",
|
} else if #[cfg(any(target_os = "hermit",
|
||||||
all(target_vendor = "fortanix", target_env = "sgx")
|
all(target_vendor = "fortanix", target_env = "sgx"),
|
||||||
|
target_os = "xous"
|
||||||
))] {
|
))] {
|
||||||
unsafe fn abort() -> ! {
|
unsafe fn abort() -> ! {
|
||||||
// call std::sys::abort_internal
|
// call std::sys::abort_internal
|
||||||
|
Loading…
Reference in New Issue
Block a user