Merge branch 'wip-traceinfo' of https://github.com/vears91/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__) \
2d3b79c7 9 || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
a1ea676e
KS
10#define nop __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
11#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
12#define write_barrier() __asm__ __volatile__ ("" : : : "memory")
50aca6fd 13#elif defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_8A__)
eef16f31
JA
14#define nop __asm__ __volatile__ ("nop")
15#define read_barrier() __sync_synchronize()
16#define write_barrier() __sync_synchronize()
a1ea676e
KS
17#endif
18
19#endif