blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / sh / include / asm / cache_insns_32.h
blobb92fe5416092fa8d10015aee50c3237821ca1edd
1 #ifndef __ASM_SH_CACHE_INSNS_32_H
2 #define __ASM_SH_CACHE_INSNS_32_H
4 #include <linux/types.h>
6 #if defined(CONFIG_CPU_SH4A)
7 #define __icbi(addr) __asm__ __volatile__ ( "icbi @%0\n\t" : : "r" (addr))
8 #else
9 #define __icbi(addr) mb()
10 #endif
12 #define __ocbp(addr) __asm__ __volatile__ ( "ocbp @%0\n\t" : : "r" (addr))
13 #define __ocbi(addr) __asm__ __volatile__ ( "ocbi @%0\n\t" : : "r" (addr))
14 #define __ocbwb(addr) __asm__ __volatile__ ( "ocbwb @%0\n\t" : : "r" (addr))
16 static inline reg_size_t register_align(void *val)
18 return (unsigned long)(signed long)val;
21 #endif /* __ASM_SH_CACHE_INSNS_32_H */