1db79e029SStefan Asserhall /* SPDX-License-Identifier: GPL-2.0 */
2db79e029SStefan Asserhall /*
3db79e029SStefan Asserhall  * Copyright (c) 2015 - 2020 Xilinx, Inc. All rights reserved.
4db79e029SStefan Asserhall  */
5db79e029SStefan Asserhall 
6db79e029SStefan Asserhall #ifndef _ASM_MICROBLAZE_BARRIER_H
7db79e029SStefan Asserhall #define _ASM_MICROBLAZE_BARRIER_H
8db79e029SStefan Asserhall 
9db79e029SStefan Asserhall #define mb()	__asm__ __volatile__ ("mbar 1" : : : "memory")
10db79e029SStefan Asserhall 
11db79e029SStefan Asserhall #include <asm-generic/barrier.h>
12db79e029SStefan Asserhall 
13db79e029SStefan Asserhall #endif /* _ASM_MICROBLAZE_BARRIER_H */
14