1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 #ifndef _ASM_RISCV_FENCE_H 3 #define _ASM_RISCV_FENCE_H 4 5 #define RISCV_FENCE_ASM(p, s) "\tfen 6 #define RISCV_FENCE(p, s) \ 7 ({ __asm__ __volatile__ (RISCV_FENCE_A 8 9 #ifdef CONFIG_SMP 10 #define RISCV_ACQUIRE_BARRIER RISCV_ 11 #define RISCV_RELEASE_BARRIER RISCV_ 12 #define RISCV_FULL_BARRIER RISCV_ 13 #else 14 #define RISCV_ACQUIRE_BARRIER 15 #define RISCV_RELEASE_BARRIER 16 #define RISCV_FULL_BARRIER 17 #endif 18 19 #endif /* _ASM_RISCV_FENCE_H */ 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.