mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Back to opcode for 32 bit ARM __fastfail
This commit is contained in:
parent
8bcc4d6178
commit
9e2228d2d0
@ -64,7 +64,7 @@ pub unsafe extern "C" fn __rust_start_panic(_payload: usize) -> u32 {
|
||||
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
|
||||
asm!("int $$0x29", in("ecx") FAST_FAIL_FATAL_APP_EXIT);
|
||||
} else if #[cfg(target_arch = "arm")] {
|
||||
asm!("brk 0xDEFB", in("r0") FAST_FAIL_FATAL_APP_EXIT);
|
||||
asm!(".inst 0xDEFB", in("r0") FAST_FAIL_FATAL_APP_EXIT);
|
||||
} else if #[cfg(target_arch = "aarch64")] {
|
||||
asm!("brk 0xF003", in("x0") FAST_FAIL_FATAL_APP_EXIT);
|
||||
} else {
|
||||
|
@ -313,7 +313,7 @@ pub fn abort_internal() -> ! {
|
||||
asm!("int $$0x29", in("ecx") FAST_FAIL_FATAL_APP_EXIT);
|
||||
crate::intrinsics::unreachable();
|
||||
} else if #[cfg(target_arch = "arm")] {
|
||||
asm!("brk 0xDEFB", in("r0") FAST_FAIL_FATAL_APP_EXIT);
|
||||
asm!(".inst 0xDEFB", in("r0") FAST_FAIL_FATAL_APP_EXIT);
|
||||
crate::intrinsics::unreachable();
|
||||
} else if #[cfg(target_arch = "aarch64")] {
|
||||
asm!("brk 0xF003", in("x0") FAST_FAIL_FATAL_APP_EXIT);
|
||||
|
Loading…
Reference in New Issue
Block a user