Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: Define microblaze barrier

Define microblaze barrier.

Signed-off-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>

authored by

Stefan Asserhall and committed by
Michal Simek
db79e029 7e8f54cd

+13 -1
-1
arch/microblaze/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 generated-y += syscall_table.h 3 - generic-y += barrier.h 4 3 generic-y += bitops.h 5 4 generic-y += bug.h 6 5 generic-y += bugs.h
+13
arch/microblaze/include/asm/barrier.h
··· 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 */