]> 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:01 +0000 (11:36 -0800)
Signed-off-by: Roland Dreier <rolandd@cisco.com>
ChangeLog
include/infiniband/arch.h

index 409c553a85cc301648c11a2c9fc57abc8d1cb53b..9ce79696f6a63456bb645b2c6d33fa4c8b0a8655 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-07  Sean Hefty     <sean.hefty@intel.com>
 
        * src/verbs.c include/infiniband/verbs.h: Add new routines:
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