diff options
author | Roland Dreier <rolandd@cisco.com> | 2006-05-01 23:10:33 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:36:01 -0800 |
commit | dcf7fdea7b56cdbe22b45ce267c328ad280d52f4 (patch) | |
tree | 232b7be568bbc083c0a662c6b91ce6f0de6a41fb | |
parent | 68d8e8913fab46401f99bbf7643c90cc4ad63647 (diff) | |
download | libibverbs-dcf7fdea7b56cdbe22b45ce267c328ad280d52f4.tar.gz |
Fix Debian sparc build failure
Fix build failure with Debian sparc compiler: membar is only supported
under V9 ISA.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | debian/changelog | 10 | ||||
-rw-r--r-- | include/infiniband/arch.h | 6 |
3 files changed, 18 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2006-05-01 Roland Dreier <rdreier@cisco.com> + + * include/infiniband/arch.h: Only SPARC V9 ISA supports membar. + So just use generic memory barrier for older sparc archs. + 2006-04-11 Roland Dreier <rdreier@cisco.com> * src/sysfs.c (ibv_read_sysfs_file): Fix memory leak if open fails. diff --git a/debian/changelog b/debian/changelog index 4d9fa1c..29b2639 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,17 @@ libibverbs (1.0.3-1) unstable; urgency=low - * New upstream release. * Change priority to extra, since libibverbs depends on libsysfs2, which has priority extra. (Debian policy section 2.5 states that a package may not depend on another package of lower priority) + * New upstream release: + - For sparc, only generate membar instruction if compiling for V9 + instruction set. (Closes: #365559) + - Reduce (but not yet eliminate) dependency on libsysfs. + - Deprecate some ib_XXX symbol names and introduce ibv_XXX + replacements for internal consistency. + - Other minor fixes. - -- Roland Dreier <rdreier@cisco.com> Sun, 9 Apr 2006 12:10:17 -0700 + -- Roland Dreier <rdreier@cisco.com> Mon, 1 May 2006 15:54:07 -0700 libibverbs (1.0.2-1) unstable; urgency=low diff --git a/include/infiniband/arch.h b/include/infiniband/arch.h index 147c3d0..7c7cf10 100644 --- a/include/infiniband/arch.h +++ b/include/infiniband/arch.h @@ -76,10 +76,14 @@ static inline uint64_t ntohll(uint64_t x) { return x; } #define mb() asm volatile("sync" ::: "memory") -#elif defined(__sparc__) +#elif defined(__sparc_v9__) #define mb() asm volatile("membar #LoadLoad | #LoadStore | #StoreStore | #StoreLoad" ::: "memory") +#elif defined(__sparc__) + +#define mb() asm volatile("sync" ::: "memory") + #else #warning No architecture specific defines found. Using generic implementation. |