Skip to content

Commit db79e02

Browse files
asserhallMichal Simek
authored andcommitted
microblaze: Define microblaze barrier
Define microblaze barrier. Signed-off-by: Stefan Asserhall <[email protected]> Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
1 parent 7e8f54c commit db79e02

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

arch/microblaze/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
22
generated-y += syscall_table.h
3-
generic-y += barrier.h
43
generic-y += bitops.h
54
generic-y += bug.h
65
generic-y += bugs.h

arch/microblaze/include/asm/barrier.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Copyright (c) 2015 - 2020 Xilinx, Inc. All rights reserved.
4+
*/
5+
6+
#ifndef _ASM_MICROBLAZE_BARRIER_H
7+
#define _ASM_MICROBLAZE_BARRIER_H
8+
9+
#define mb() __asm__ __volatile__ ("mbar 1" : : : "memory")
10+
11+
#include <asm-generic/barrier.h>
12+
13+
#endif /* _ASM_MICROBLAZE_BARRIER_H */

0 commit comments

Comments
 (0)