Make ARMv7 build and work
authorJens Axboe <jens.axboe@oracle.com>
Sat, 20 Mar 2010 20:30:36 +0000 (21:30 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 20 Mar 2010 20:30:36 +0000 (21:30 +0100)
Contributed by debian bug #573027

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573027

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
arch/arch-arm.h

index 1b590f1..b0cfd80 100644 (file)
 #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