From 304f223a400e050aa97aa5123dd070d4cb79189a Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Tue, 16 Apr 2024 19:33:43 +0000 Subject: [PATCH] Remove nomem flag from isb, dsb and dmb Fixes #502 --- cortex-m/src/asm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cortex-m/src/asm.rs b/cortex-m/src/asm.rs index 3a3485a1..756899f8 100644 --- a/cortex-m/src/asm.rs +++ b/cortex-m/src/asm.rs @@ -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); } @@ -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); } @@ -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); }