Skip to content

Commit 6f14352

Browse files
committed
Remove nomem flag from isb, dsb and dmb
Fixes #502
1 parent bb4a782 commit 6f14352

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asm/inline.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,21 @@ pub unsafe fn __delay(cyc: u32) {
7272
#[inline(always)]
7373
pub unsafe fn __dmb() {
7474
compiler_fence(Ordering::SeqCst);
75-
asm!("dmb", options(nomem, nostack, preserves_flags));
75+
asm!("dmb", options(nostack, preserves_flags));
7676
compiler_fence(Ordering::SeqCst);
7777
}
7878

7979
#[inline(always)]
8080
pub unsafe fn __dsb() {
8181
compiler_fence(Ordering::SeqCst);
82-
asm!("dsb", options(nomem, nostack, preserves_flags));
82+
asm!("dsb", options(nostack, preserves_flags));
8383
compiler_fence(Ordering::SeqCst);
8484
}
8585

8686
#[inline(always)]
8787
pub unsafe fn __isb() {
8888
compiler_fence(Ordering::SeqCst);
89-
asm!("isb", options(nomem, nostack, preserves_flags));
89+
asm!("isb", options(nostack, preserves_flags));
9090
compiler_fence(Ordering::SeqCst);
9191
}
9292

0 commit comments

Comments
 (0)