Skip to content

Commit

Permalink
Remove nomem flag from isb, dsb and dmb
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Apr 16, 2024
1 parent bb4a782 commit 6f14352
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asm/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ pub unsafe fn __delay(cyc: u32) {
#[inline(always)]
pub unsafe fn __dmb() {
compiler_fence(Ordering::SeqCst);
asm!("dmb", options(nomem, nostack, preserves_flags));
asm!("dmb", options(nostack, preserves_flags));
compiler_fence(Ordering::SeqCst);
}

#[inline(always)]
pub unsafe fn __dsb() {
compiler_fence(Ordering::SeqCst);
asm!("dsb", options(nomem, nostack, preserves_flags));
asm!("dsb", options(nostack, preserves_flags));
compiler_fence(Ordering::SeqCst);
}

#[inline(always)]
pub unsafe fn __isb() {
compiler_fence(Ordering::SeqCst);
asm!("isb", options(nomem, nostack, preserves_flags));
asm!("isb", options(nostack, preserves_flags));
compiler_fence(Ordering::SeqCst);
}

Expand Down

0 comments on commit 6f14352

Please sign in to comment.