Back to opcode for 32 bit ARM __fastfail

This commit is contained in:
Ryan Levick 2020-08-28 17:40:56 +02:00
parent 8bcc4d6178
commit 9e2228d2d0
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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);