2 * Copied from the kernel sources:
4 * Copyright IBM Corp. 1999, 2009
6 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
9 #ifndef __TOOLS_LINUX_ASM_BARRIER_H
10 #define __TOOLS_LINUX_ASM_BARRIER_H
13 * Force strict CPU ordering.
14 * And yes, this is required on UP too when we're talking
18 #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES
19 /* Fast-BCR without checkpoint synchronization */
20 #define __ASM_BARRIER "bcr 14,0\n"
22 #define __ASM_BARRIER "bcr 15,0\n"
25 #define mb() do { asm volatile(__ASM_BARRIER : : : "memory"); } while (0)
30 #endif /* __TOOLS_LIB_ASM_BARRIER_H */