All of lore.kernel.org
 help / color / mirror / Atom feed
* ldcw inline assembler patch
@ 2008-06-14 15:36 Helge Deller
  2008-06-16 20:50 ` Carlos O'Donell
  0 siblings, 1 reply; 11+ messages in thread
From: Helge Deller @ 2008-06-14 15:36 UTC (permalink / raw)
  To: linux-parisc

I'm wondering if this patch might help people who are seeing locking 
problems on SMP boxes ?
Helge

diff --git a/include/asm-parisc/system.h b/include/asm-parisc/system.h
index ee80c92..4752684 100644
--- a/include/asm-parisc/system.h
+++ b/include/asm-parisc/system.h
@@ -168,8 +168,9 @@ static inline void set_eiem(unsigned long val)
  /* LDCW, the only atomic read-write operation PA-RISC has. *sigh*.  */
  #define __ldcw(a) ({						\
  	unsigned __ret;						\
-	__asm__ __volatile__(__LDCW " 0(%1),%0"			\
-		: "=r" (__ret) : "r" (a));			\
+	__asm__ __volatile__(__LDCW " 0(%2),%0"			\
+			: "=r" (__ret), "=m" (*(a))		\
+			: "r" (a), "m" (*(a))	);		\
  	__ret;							\
  })


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-21 18:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 15:36 ldcw inline assembler patch Helge Deller
2008-06-16 20:50 ` Carlos O'Donell
2008-06-16 21:06   ` Helge Deller
2008-06-16 21:54     ` Carlos O'Donell
2008-06-16 21:57       ` Kyle McMartin
2008-06-16 22:03         ` Kyle McMartin
2008-06-16 22:05         ` Matthew Wilcox
2008-06-16 22:14           ` Carlos O'Donell
2008-06-17  1:56             ` Carlos O'Donell
2008-06-17  3:34               ` Carlos O'Donell
2008-06-21 18:34   ` John David Anglin

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.