14#ifndef ZEPHYR_INCLUDE_SYS_BARRIER_BUILTIN_H_
15#define ZEPHYR_INCLUDE_SYS_BARRIER_BUILTIN_H_
17#ifndef ZEPHYR_INCLUDE_SYS_BARRIER_H_
18#error Please include <zephyr/sys/barrier.h>
27static ALWAYS_INLINE
void z_barrier_sync_synchronize(
void)
32static ALWAYS_INLINE
void z_barrier_dmem_fence_full(
void)
36 __atomic_thread_fence(__ATOMIC_SEQ_CST);
38 atomic_thread_fence(memory_order_seq_cst);
42static ALWAYS_INLINE
void z_barrier_dsync_fence_full(
void)
46 __atomic_thread_fence(__ATOMIC_SEQ_CST);
48 atomic_thread_fence(memory_order_seq_cst);
52static ALWAYS_INLINE
void z_barrier_isync_fence_full(
void)
54 __asm__
volatile(
"" : : :
"memory");