From: Roland Dreier Date: Mon, 1 May 2006 23:10:33 +0000 (+0000) Subject: Fix Debian sparc build failure X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=dcf7fdea7b56cdbe22b45ce267c328ad280d52f4;p=~shefty%2Flibibverbs.git Fix Debian sparc build failure Fix build failure with Debian sparc compiler: membar is only supported under V9 ISA. Signed-off-by: Roland Dreier --- diff --git a/ChangeLog b/ChangeLog index ee28f4d..4bb410b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-01 Roland Dreier + + * 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 * 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 Sun, 9 Apr 2006 12:10:17 -0700 + -- Roland Dreier 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.