Skip to content

Commit

Permalink
Merge pull request #526 from jannic/issue-502
Browse files Browse the repository at this point in the history
Remove nomem flag from isb, dsb and dmb
  • Loading branch information
adamgreig committed Apr 16, 2024
2 parents 8a3c9f6 + 304f223 commit 53073e1
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 53073e1

Please sign in to comment.