Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux...
[linux/fpc-iii.git] / tools / arch / arm64 / include / asm / barrier.h
bloba0483c8e01429c4e3ae002ac6d2e1ee4ecce812b
1 #ifndef _TOOLS_LINUX_ASM_AARCH64_BARRIER_H
2 #define _TOOLS_LINUX_ASM_AARCH64_BARRIER_H
4 /*
5 * From tools/perf/perf-sys.h, last modified in:
6 * f428ebd184c82a7914b2aa7e9f868918aaf7ea78 perf tools: Fix AAAAARGH64 memory barriers
8 * XXX: arch/arm64/include/asm/barrier.h in the kernel sources use dsb, is this
9 * a case like for arm32 where we do things differently in userspace?
12 #define mb() asm volatile("dmb ish" ::: "memory")
13 #define wmb() asm volatile("dmb ishst" ::: "memory")
14 #define rmb() asm volatile("dmb ishld" ::: "memory")
16 #endif /* _TOOLS_LINUX_ASM_AARCH64_BARRIER_H */