nrf5340: add memory clobber to DSB()

The F-12879 fix publishes SHM status with plain C stores before
IPC_TASKS_SEND; without a compiler memory barrier an optimized
build can reorder the stores past the dsb asm. Matches the
existing clobber in imx95_m7.h and stm32g4.h.
pull/892/head
Daniele Lacamera 2026-09-15 14:32:18 +02:00
parent efc5753b28
commit 2c636e9606
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@
/* Assembly helpers */
#define DMB() __asm__ volatile ("dmb")
#define DSB() __asm__ volatile ("dsb")
#define DSB() __asm__ volatile ("dsb" ::: "memory")
#define ISB() __asm__ volatile ("isb")
#define NOP() __asm__ volatile ("nop")