File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 17
17
#![ feature( panic_runtime) ]
18
18
#![ feature( staged_api) ]
19
19
#![ feature( rustc_attrs) ]
20
- #![ feature( llvm_asm ) ]
20
+ #![ feature( asm ) ]
21
21
22
22
use core:: any:: Any ;
23
23
@@ -62,11 +62,11 @@ pub unsafe extern "C" fn __rust_start_panic(_payload: usize) -> u32 {
62
62
const FAST_FAIL_FATAL_APP_EXIT : usize = 7 ;
63
63
cfg_if:: cfg_if! {
64
64
if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
65
- llvm_asm !( "int $$0x29" :: "{ ecx}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
65
+ asm !( "int $$0x29" , in ( " ecx" ) FAST_FAIL_FATAL_APP_EXIT ) ;
66
66
} else if #[ cfg( target_arch = "arm" ) ] {
67
- llvm_asm !( ".inst 0xDEFB" :: "{r0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
67
+ asm !( "brk 0xDEFB" , in ( "r0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
68
68
} else if #[ cfg( target_arch = "aarch64" ) ] {
69
- llvm_asm !( ".inst 0xF003" :: "{x0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
69
+ asm !( "brk 0xF003" , in ( "x0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
70
70
} else {
71
71
core:: intrinsics:: abort( ) ;
72
72
}
Original file line number Diff line number Diff line change @@ -310,13 +310,13 @@ pub fn abort_internal() -> ! {
310
310
unsafe {
311
311
cfg_if:: cfg_if! {
312
312
if #[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ] {
313
- llvm_asm !( "int $$0x29" :: "{ ecx}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
313
+ asm !( "int $$0x29" , in ( " ecx" ) FAST_FAIL_FATAL_APP_EXIT ) ;
314
314
crate :: intrinsics:: unreachable( ) ;
315
315
} else if #[ cfg( target_arch = "arm" ) ] {
316
- llvm_asm !( ".inst 0xDEFB" :: "{r0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
316
+ asm !( "brk 0xDEFB" , in ( "r0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
317
317
crate :: intrinsics:: unreachable( ) ;
318
318
} else if #[ cfg( target_arch = "aarch64" ) ] {
319
- llvm_asm !( ".inst 0xF003" :: "{x0}" ( FAST_FAIL_FATAL_APP_EXIT ) :: : volatile ) ;
319
+ asm !( "brk 0xF003" , in ( "x0" ) FAST_FAIL_FATAL_APP_EXIT ) ;
320
320
crate :: intrinsics:: unreachable( ) ;
321
321
}
322
322
}
You can’t perform that action at this time.
0 commit comments