fence.h 279 B

123456789101112
  1. #ifndef _ASM_RISCV_FENCE_H
  2. #define _ASM_RISCV_FENCE_H
  3. #ifdef CONFIG_SMP
  4. #define RISCV_ACQUIRE_BARRIER "\tfence r , rw\n"
  5. #define RISCV_RELEASE_BARRIER "\tfence rw, w\n"
  6. #else
  7. #define RISCV_ACQUIRE_BARRIER
  8. #define RISCV_RELEASE_BARRIER
  9. #endif
  10. #endif /* _ASM_RISCV_FENCE_H */