summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2010-03-20 21:30:36 +0100
committerJens Axboe <jens.axboe@oracle.com>2010-03-20 21:30:36 +0100
commiteef16f316456526b0a52fdfce2b70c12d7ad1b5b (patch)
tree0306db953fa46fed703a8cf90b1cdd43baca28c8
parent331539ace6487a031f40281eacf41e4de008ad23 (diff)
downloadfio-eef16f316456526b0a52fdfce2b70c12d7ad1b5b.tar.gz
fio-eef16f316456526b0a52fdfce2b70c12d7ad1b5b.tar.bz2
Make ARMv7 build and work
Contributed by debian bug #573027 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573027 Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--arch/arch-arm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arch-arm.h b/arch/arch-arm.h
index 1b590f11..b0cfd808 100644
--- a/arch/arch-arm.h
+++ b/arch/arch-arm.h
@@ -22,6 +22,10 @@
#define nop __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t")
#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
#define write_barrier() __asm__ __volatile__ ("" : : : "memory")
+#elif defined(__ARM_ARCH_7A__)
+#define nop __asm__ __volatile__ ("nop")
+#define read_barrier() __sync_synchronize()
+#define write_barrier() __sync_synchronize()
#endif
#endif