File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ pub unsafe fn __bootstrap(msp: u32, rv: u32) -> ! {
215
215
pub use self :: v7m:: * ;
216
216
#[ cfg( any( armv7m, armv8m_main) ) ]
217
217
mod v7m {
218
+ use core:: arch:: asm;
218
219
use core:: sync:: atomic:: { compiler_fence, Ordering } ;
219
220
220
221
#[ inline( always) ]
@@ -284,6 +285,8 @@ mod v7m {
284
285
pub use self :: v7em:: * ;
285
286
#[ cfg( armv7em) ]
286
287
mod v7em {
288
+ use core:: arch:: asm;
289
+
287
290
#[ inline( always) ]
288
291
pub unsafe fn __basepri_max_cm7_r0p1 ( val : u8 ) {
289
292
asm ! (
@@ -320,6 +323,8 @@ pub use self::v8m::*;
320
323
/// Baseline and Mainline.
321
324
#[ cfg( armv8m) ]
322
325
mod v8m {
326
+ use core:: arch:: asm;
327
+
323
328
#[ inline( always) ]
324
329
pub unsafe fn __tt ( mut target : u32 ) -> u32 {
325
330
asm ! ( "tt {target}, {target}" , target = inout( reg) target) ;
@@ -367,6 +372,8 @@ pub use self::v8m_main::*;
367
372
/// Mainline only.
368
373
#[ cfg( armv8m_main) ]
369
374
mod v8m_main {
375
+ use core:: arch:: asm;
376
+
370
377
#[ inline( always) ]
371
378
pub unsafe fn __msplim_r ( ) -> u32 {
372
379
let r;
@@ -397,6 +404,8 @@ pub use self::fpu::*;
397
404
/// All targets with FPU.
398
405
#[ cfg( has_fpu) ]
399
406
mod fpu {
407
+ use core:: arch:: asm;
408
+
400
409
#[ inline( always) ]
401
410
pub unsafe fn __fpscr_r ( ) -> u32 {
402
411
let r;
You can’t perform that action at this time.
0 commit comments