cache_insns_32.h 603 B

12345678910111213141516171819202122
  1. #ifndef __ASM_SH_CACHE_INSNS_32_H
  2. #define __ASM_SH_CACHE_INSNS_32_H
  3. #include <linux/types.h>
  4. #if defined(CONFIG_CPU_SH4A)
  5. #define __icbi(addr) __asm__ __volatile__ ( "icbi @%0\n\t" : : "r" (addr))
  6. #else
  7. #define __icbi(addr) mb()
  8. #endif
  9. #define __ocbp(addr) __asm__ __volatile__ ( "ocbp @%0\n\t" : : "r" (addr))
  10. #define __ocbi(addr) __asm__ __volatile__ ( "ocbi @%0\n\t" : : "r" (addr))
  11. #define __ocbwb(addr) __asm__ __volatile__ ( "ocbwb @%0\n\t" : : "r" (addr))
  12. static inline reg_size_t register_align(void *val)
  13. {
  14. return (unsigned long)(signed long)val;
  15. }
  16. #endif /* __ASM_SH_CACHE_INSNS_32_H */