mirror of https://github.com/wolfSSL/wolfBoot.git
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
parent
efc5753b28
commit
2c636e9606
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue