File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ pub unsafe extern "C" fn __rust_start_panic(_payload: usize) -> u32 {
63
63
cfg_if:: cfg_if! {
64
64
if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
65
65
asm!( "int $$0x29" , in( "ecx" ) FAST_FAIL_FATAL_APP_EXIT ) ;
66
- } else if #[ cfg( target_arch = "arm" ) ] {
66
+ } else if #[ cfg( all ( target_arch = "arm" , target_feature = "thumb-mode" ) ) ] {
67
67
asm!( ".inst 0xDEFB" , in( "r0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
68
68
} else if #[ cfg( target_arch = "aarch64" ) ] {
69
69
asm!( "brk 0xF003" , in( "x0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ pub fn abort_internal() -> ! {
312
312
if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
313
313
asm!( "int $$0x29" , in( "ecx" ) FAST_FAIL_FATAL_APP_EXIT ) ;
314
314
crate :: intrinsics:: unreachable( ) ;
315
- } else if #[ cfg( target_arch = "arm" ) ] {
315
+ } else if #[ cfg( all ( target_arch = "arm" , target_feature = "thumb-mode" ) ) ] {
316
316
asm!( ".inst 0xDEFB" , in( "r0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
317
317
crate :: intrinsics:: unreachable( ) ;
318
318
} else if #[ cfg( target_arch = "aarch64" ) ] {
You can’t perform that action at this time.
0 commit comments