File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 153
153
//!
154
154
//! ## `inline-asm`
155
155
//!
156
- //! When this feature is enabled semihosting is implemented using inline assembly (`llvm_asm!`) and
156
+ //! When this feature is enabled semihosting is implemented using inline assembly and
157
157
//! compiling this crate requires nightly.
158
158
//!
159
159
//! When this feature is disabled semihosting is implemented using FFI calls into an external
179
179
//!
180
180
//! [pdf]: http://infocenter.arm.com/help/topic/com.arm.doc.dui0471e/DUI0471E_developing_for_arm_processors.pdf
181
181
182
- #![ cfg_attr( feature = "inline-asm" , feature( llvm_asm) ) ]
183
182
#![ deny( missing_docs) ]
184
183
#![ no_std]
185
184
@@ -213,7 +212,12 @@ pub unsafe fn syscall1(_nr: usize, _arg: usize) -> usize {
213
212
#[ cfg( all( thumb, feature = "inline-asm" , not( feature = "no-semihosting" ) ) ) ]
214
213
( ) => {
215
214
let mut nr = _nr;
216
- llvm_asm ! ( "bkpt 0xAB" : "+{r0}" ( nr) : "{r1}" ( _arg) :: "volatile" ) ;
215
+ core:: arch:: asm!(
216
+ "bkpt #0xab" ,
217
+ inout( "r0" ) nr,
218
+ in( "r1" ) _arg,
219
+ options( nomem, nostack, preserves_flags)
220
+ ) ;
217
221
nr
218
222
}
219
223
You can’t perform that action at this time.
0 commit comments