Skip to content

Commit 53073e1

Browse files
authored
Merge pull request #526 from jannic/issue-502
Remove nomem flag from isb, dsb and dmb
2 parents 8a3c9f6 + 304f223 commit 53073e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cortex-m/src/asm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn isb() {
9494
compiler_fence(Ordering::SeqCst);
9595
#[cfg(cortex_m)]
9696
unsafe {
97-
asm!("isb", options(nomem, nostack, preserves_flags))
97+
asm!("isb", options(nostack, preserves_flags))
9898
};
9999
compiler_fence(Ordering::SeqCst);
100100
}
@@ -111,7 +111,7 @@ pub fn dsb() {
111111
compiler_fence(Ordering::SeqCst);
112112
#[cfg(cortex_m)]
113113
unsafe {
114-
asm!("dsb", options(nomem, nostack, preserves_flags))
114+
asm!("dsb", options(nostack, preserves_flags))
115115
};
116116
compiler_fence(Ordering::SeqCst);
117117
}
@@ -126,7 +126,7 @@ pub fn dmb() {
126126
compiler_fence(Ordering::SeqCst);
127127
#[cfg(cortex_m)]
128128
unsafe {
129-
asm!("dmb", options(nomem, nostack, preserves_flags))
129+
asm!("dmb", options(nostack, preserves_flags))
130130
};
131131
compiler_fence(Ordering::SeqCst);
132132
}

0 commit comments

Comments
 (0)