]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Fix libibverbs definition of mb() for sparc
authorRoland Dreier <rolandd@cisco.com>
Tue, 4 Jul 2006 20:38:54 +0000 (20:38 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:36:33 +0000 (11:36 -0800)
Signed-off-by: Roland Dreier <rolandd@cisco.com>
ChangeLog
include/infiniband/arch.h

index 62780319fdf26ae9abe2bc7a3daff9e394b11fe4..eceb76e1042a2db0cd166a219958ac6977d06246 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-04  Roland Dreier  <rdreier@cisco.com>
+
+       * include/infiniband/arch.h: Fix typo in sparc mb()
+       implementation: the asm should just be empty -- the "sync"
+       instruction was mistakenly cut and pasted from the ppc version.
+
 2006-06-01  Roland Dreier  <rdreier@cisco.com>
 
        * src/device.c (ibv_get_device_list): Actually return a
index 7c7cf10b803e3de115ed51c314b51b2ad3dc7c55..ccb1376d86a5ab4af09cc4dc4907b67d2d845f8e 100644 (file)
@@ -82,7 +82,7 @@ static inline uint64_t ntohll(uint64_t x) { return x; }
 
 #elif defined(__sparc__)
 
-#define mb()   asm volatile("sync" ::: "memory")
+#define mb()   asm volatile("" ::: "memory")
 
 #else