[ewg] [PATCH 2/3] common: dapl_os_atomic_inc/dec() not working as expected on ppc64 machines.
Davis, Arlin R
arlin.r.davis at intel.com
Wed Jun 5 16:31:52 PDT 2013
Signed-off-by: Aravinda Venkatramana <Aravinda.Venkatramana at emulex.com>
Signed-off-by: Pradeep Satyanarayana <pradeep at us.ibm.com>
Acked-by: Arlin Davis <arlin.r.davis at 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
More information about the ewg
mailing list