All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] uDAPL: common: dapl_os_atomic_inc/dec() not working as expected on ppc64 machines
@ 2013-05-30 17:55 Davis, Arlin R
  0 siblings, 0 replies; only message in thread
From: Davis, Arlin R @ 2013-05-30 17:55 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA, ofw-ZwoEplunGu1OwGhvXhtEPSCwEArCW2h5

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 931 bytes --]


Signed-off-by: Pradeep Satyanarayana <pradeep@lus.ibm.com>
Acked-by: Arlin Davis <arlin.r.davis@intel.com>
---
 dapl/udapl/linux/dapl_osd.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dapl/udapl/linux/dapl_osd.h b/dapl/udapl/linux/dapl_osd.h
index 7198439..0412461 100644
--- a/dapl/udapl/linux/dapl_osd.h
+++ b/dapl/udapl/linux/dapl_osd.h
@@ -188,7 +188,7 @@ dapl_os_atomic_inc (
 		stwcx.	%0,0,%2\n\
 		bne-	1b"
 	: "=&r" (tmp), "+m" (v)
-	: "r" (&v)
+	: "b" (v)
 	: "cc");
 #else  /* !__ia64__ */
     __asm__ __volatile__ (
@@ -227,7 +227,7 @@ dapl_os_atomic_dec (
 		stwcx.	%0,0,%2\n\
 		bne-	1b"
 	: "=&r" (tmp), "+m" (v)
-	: "r" (&v)
+	: "b" (v)
 	: "cc");
 #else  /* !__ia64__ */
     __asm__ __volatile__ (
-- 
1.7.3




N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·¥Š{±­ÙšŠ{ayº\x1dʇڙë,j\a­¢f£¢·hš‹»öì\x17/oSc¾™Ú³9˜uÀ¦æå‰È&jw¨®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿïêäz¹Þ–Šàþf£¢·hšˆ§~ˆmš

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-30 17:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-30 17:55 [PATCH 2/3] uDAPL: common: dapl_os_atomic_inc/dec() not working as expected on ppc64 machines Davis, Arlin R

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.