Path: blob/master/tools/arch/mips/include/asm/barrier.h
26295 views
/* SPDX-License-Identifier: GPL-2.0 */1#ifndef _TOOLS_LINUX_ASM_MIPS_BARRIER_H2#define _TOOLS_LINUX_ASM_MIPS_BARRIER_H3/*4* FIXME: This came from tools/perf/perf-sys.h, where it was first introduced5* in c1e028ef40b8d6943b767028ba17d4f2ba020edb, more work needed to make it6* more closely follow the Linux kernel arch/mips/include/asm/barrier.h file.7* Probably when we continue work on tools/ Kconfig support to have all the8* CONFIG_ needed for properly doing that.9*/10#define mb() asm volatile( \11".set mips2\n\t" \12"sync\n\t" \13".set mips0" \14: /* no output */ \15: /* no input */ \16: "memory")17#define wmb() mb()18#define rmb() mb()1920#endif /* _TOOLS_LINUX_ASM_MIPS_BARRIER_H */212223