Merge branch 'o_dsync' of https://github.com/anarazel/fio
[fio.git] / arch / arch-arm.h
CommitLineData
a1ea676e
KS
1#ifndef ARCH_ARM_H
2#define ARCH_ARM_H
3
cca84643 4#define FIO_ARCH (arch_arm)
a1ea676e 5
2d3b79c7 6#if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) \
7c7a22c9
RS
7 || defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5E__)\
8 || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) \
3730a873 9 || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
ec4b65d9 10 || defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6K__)
a1ea676e
KS
11#define nop __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
12#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
13#define write_barrier() __asm__ __volatile__ ("" : : : "memory")
d5c4f974 14#elif defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7VE__) || defined(__ARM_ARCH_8A__)
eef16f31
JA
15#define nop __asm__ __volatile__ ("nop")
16#define read_barrier() __sync_synchronize()
17#define write_barrier() __sync_synchronize()
4dbc7d3b
SW
18#else
19#error "unsupported ARM architecture"
a1ea676e
KS
20#endif
21
22#endif