7#ifndef ZEPHYR_INCLUDE_SYS_BARRIER_BUILTIN_H_
8#define ZEPHYR_INCLUDE_SYS_BARRIER_BUILTIN_H_
10#ifndef ZEPHYR_INCLUDE_SYS_BARRIER_H_
11#error Please include <zephyr/sys/barrier.h>
20static ALWAYS_INLINE
void z_barrier_sync_synchronize(
void)
25static ALWAYS_INLINE
void z_barrier_dmem_fence_full(
void)
29 __atomic_thread_fence(__ATOMIC_SEQ_CST);
31 atomic_thread_fence(memory_order_seq_cst);
35static ALWAYS_INLINE
void z_barrier_dsync_fence_full(
void)
39 __atomic_thread_fence(__ATOMIC_SEQ_CST);
41 atomic_thread_fence(memory_order_seq_cst);
45static ALWAYS_INLINE
void z_barrier_isync_fence_full(
void)
47 __asm__
volatile(
"" : : :
"memory");