M7350/kernel/arch/alpha/include/asm/barrier.h

21 lines
446 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#ifndef __BARRIER_H
#define __BARRIER_H
#include <asm/compiler.h>
2024-09-09 08:57:42 +00:00
#define mb() __asm__ __volatile__("mb": : :"memory")
#define rmb() __asm__ __volatile__("mb": : :"memory")
#define wmb() __asm__ __volatile__("wmb": : :"memory")
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
#define read_barrier_depends() __asm__ __volatile__("mb": : :"memory")
2024-09-09 08:52:07 +00:00
#ifdef CONFIG_SMP
#define __ASM_SMP_MB "\tmb\n"
#else
#define __ASM_SMP_MB
#endif
2024-09-09 08:57:42 +00:00
#include <asm-generic/barrier.h>
2024-09-09 08:52:07 +00:00
#endif /* __BARRIER_H */