162306a36Sopenharmony_ci#ifndef _ASM_RISCV_FENCE_H 262306a36Sopenharmony_ci#define _ASM_RISCV_FENCE_H 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifdef CONFIG_SMP 562306a36Sopenharmony_ci#define RISCV_ACQUIRE_BARRIER "\tfence r , rw\n" 662306a36Sopenharmony_ci#define RISCV_RELEASE_BARRIER "\tfence rw, w\n" 762306a36Sopenharmony_ci#else 862306a36Sopenharmony_ci#define RISCV_ACQUIRE_BARRIER 962306a36Sopenharmony_ci#define RISCV_RELEASE_BARRIER 1062306a36Sopenharmony_ci#endif 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#endif /* _ASM_RISCV_FENCE_H */ 13