Make SH port work for packagers that don't differentiate between SH4 and SH4A
[fio.git] / arch / arch-arm.h
CommitLineData
a1ea676e
KS
1#ifndef ARCH_ARM_H
2#define ARCH_ARM_H
3
4#define ARCH (arch_arm)
5
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 314
8#define __NR_ioprio_get 315
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 270
13#endif
14
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 340
17#define __NR_sys_tee 342
18#define __NR_sys_vmsplice 343
19#endif
20
21#if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) || defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__)
22#define nop __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
23#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
24#define write_barrier() __asm__ __volatile__ ("" : : : "memory")
eef16f31
JA
25#elif defined(__ARM_ARCH_7A__)
26#define nop __asm__ __volatile__ ("nop")
27#define read_barrier() __sync_synchronize()
28#define write_barrier() __sync_synchronize()
a1ea676e
KS
29#endif
30
31#endif