diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-07-04 20:38:54 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:36:33 -0800 |
commit | 7bc3e9c0a67565392b637ab2898ba9b4b5b6a645 (patch) | |
tree | bd3c0329abc27b9a7911505b870a4377b4ad52af | |
parent | c66b5f1057623b78c3db911d7aab506ec475fa6b (diff) | |
download | libibverbs-7bc3e9c0a67565392b637ab2898ba9b4b5b6a645.tar.gz |
Fix libibverbs definition of mb() for sparc
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | include/infiniband/arch.h | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 diff --git a/include/infiniband/arch.h b/include/infiniband/arch.h index 7c7cf10..ccb1376 100644 --- a/include/infiniband/arch.h +++ b/include/infiniband/arch.h @@ -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 |