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) -> ! {
215215pub use self :: v7m:: * ;
216216#[ cfg( any( armv7m, armv8m_main) ) ]
217217mod v7m {
218+ use core:: arch:: asm;
218219 use core:: sync:: atomic:: { compiler_fence, Ordering } ;
219220
220221 #[ inline( always) ]
@@ -284,6 +285,8 @@ mod v7m {
284285pub use self :: v7em:: * ;
285286#[ cfg( armv7em) ]
286287mod v7em {
288+ use core:: arch:: asm;
289+
287290 #[ inline( always) ]
288291 pub unsafe fn __basepri_max_cm7_r0p1 ( val : u8 ) {
289292 asm ! (
@@ -320,6 +323,8 @@ pub use self::v8m::*;
320323/// Baseline and Mainline.
321324#[ cfg( armv8m) ]
322325mod v8m {
326+ use core:: arch:: asm;
327+
323328 #[ inline( always) ]
324329 pub unsafe fn __tt ( mut target : u32 ) -> u32 {
325330 asm ! ( "tt {target}, {target}" , target = inout( reg) target) ;
@@ -367,6 +372,8 @@ pub use self::v8m_main::*;
367372/// Mainline only.
368373#[ cfg( armv8m_main) ]
369374mod v8m_main {
375+ use core:: arch:: asm;
376+
370377 #[ inline( always) ]
371378 pub unsafe fn __msplim_r ( ) -> u32 {
372379 let r;
@@ -397,6 +404,8 @@ pub use self::fpu::*;
397404/// All targets with FPU.
398405#[ cfg( has_fpu) ]
399406mod fpu {
407+ use core:: arch:: asm;
408+
400409 #[ inline( always) ]
401410 pub unsafe fn __fpscr_r ( ) -> u32 {
402411 let r;
You can’t perform that action at this time.
0 commit comments