All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] parisc: Use double word condition in 64bit CAS operation
@ 2015-09-08  0:13 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2015-09-08  0:13 UTC (permalink / raw)
  To: linux-parisc List; +Cc: Helge Deller, James Bottomley

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

The attached change fixes the condition used in the "sub" instruction.  A double word comparison
is needed.  This fixes the 64-bit LWS CAS operation on 64-bit kernels.

I can now enable 64-bit atomic support in GCC.

Cc: <stable@vger.kernel.org>
Signed-off-by: John David Anglin <dave.anglin>


[-- Attachment #2: syscall.S.d.txt --]
[-- Type: text/plain, Size: 388 bytes --]

diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S
index 7ef22e3..0b8d26d 100644
--- a/arch/parisc/kernel/syscall.S
+++ b/arch/parisc/kernel/syscall.S
@@ -821,7 +821,7 @@ cas2_action:
 	/* 64bit CAS */
 #ifdef CONFIG_64BIT
 19:	ldd,ma	0(%sr3,%r26), %r29
-	sub,=	%r29, %r25, %r0
+	sub,*=	%r29, %r25, %r0
 	b,n	cas2_end
 20:	std,ma	%r24, 0(%sr3,%r26)
 	copy	%r0, %r28

[-- Attachment #3: Type: text/plain, Size: 44 bytes --]



--
John David Anglin	dave.anglin@bell.net

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

only message in thread, other threads:[~2015-09-08  0:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08  0:13 [PATCH] parisc: Use double word condition in 64bit CAS operation 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.