18c2ecf20Sopenharmony_ci#ifndef _ASM_RISCV_FENCE_H
28c2ecf20Sopenharmony_ci#define _ASM_RISCV_FENCE_H
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifdef CONFIG_SMP
58c2ecf20Sopenharmony_ci#define RISCV_ACQUIRE_BARRIER		"\tfence r , rw\n"
68c2ecf20Sopenharmony_ci#define RISCV_RELEASE_BARRIER		"\tfence rw,  w\n"
78c2ecf20Sopenharmony_ci#else
88c2ecf20Sopenharmony_ci#define RISCV_ACQUIRE_BARRIER
98c2ecf20Sopenharmony_ci#define RISCV_RELEASE_BARRIER
108c2ecf20Sopenharmony_ci#endif
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#endif	/* _ASM_RISCV_FENCE_H */
13