Skip to content

Commit

Permalink
Remove nomem flag from isb, dsb and dmb
Browse files Browse the repository at this point in the history
Fixes #502
  • Loading branch information
jannic committed Apr 16, 2024
1 parent d85d9c8 commit 304f223
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cortex-m/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn isb() {
compiler_fence(Ordering::SeqCst);
#[cfg(cortex_m)]
unsafe {
asm!("isb", options(nomem, nostack, preserves_flags))
asm!("isb", options(nostack, preserves_flags))
};
compiler_fence(Ordering::SeqCst);
}
Expand All @@ -111,7 +111,7 @@ pub fn dsb() {
compiler_fence(Ordering::SeqCst);
#[cfg(cortex_m)]
unsafe {
asm!("dsb", options(nomem, nostack, preserves_flags))
asm!("dsb", options(nostack, preserves_flags))
};
compiler_fence(Ordering::SeqCst);
}
Expand All @@ -126,7 +126,7 @@ pub fn dmb() {
compiler_fence(Ordering::SeqCst);
#[cfg(cortex_m)]
unsafe {
asm!("dmb", options(nomem, nostack, preserves_flags))
asm!("dmb", options(nostack, preserves_flags))
};
compiler_fence(Ordering::SeqCst);
}
Expand Down

0 comments on commit 304f223

Please sign in to comment.