[PATCH] powerpc/uaccess: Add pre-update addressing to __put_user_asm_goto()

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2158d LANDED

Landed in mainline as fcf1f26895a4 on 2020-09-15.

2 messages, 2 authors, 2020-09-17 · open the first message on its own page

[PATCH] powerpc/uaccess: Add pre-update addressing to __put_user_asm_goto()

From: Christophe Leroy <hidden>
Date: 2020-09-04 10:47:43

Enable pre-update addressing mode in __put_user_asm_goto()

Signed-off-by: Christophe Leroy <redacted>
---
 arch/powerpc/include/asm/uaccess.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h
index 7c2427f237e1..a5cfe867fbdc 100644
--- a/arch/powerpc/include/asm/uaccess.h
+++ b/arch/powerpc/include/asm/uaccess.h
@@ -254,7 +254,7 @@ do {								\
 		"1:	" op "%U1%X1 %0,%1	# put_user\n"	\
 		EX_TABLE(1b, %l2)				\
 		:						\
-		: "r" (x), "m" (*addr)				\
+		: "r" (x), "m<>" (*addr)				\
 		:						\
 		: label)
 
-- 
2.25.0

Re: [PATCH] powerpc/uaccess: Add pre-update addressing to __put_user_asm_goto()

From: Michael Ellerman <hidden>
Date: 2020-09-17 11:29:05

On Fri, 4 Sep 2020 10:46:47 +0000 (UTC), Christophe Leroy wrote:
Enable pre-update addressing mode in __put_user_asm_goto()
Applied to powerpc/next.

[1/1] powerpc/uaccess: Add pre-update addressing to __put_user_asm_goto()
      https://git.kernel.org/powerpc/c/fcf1f26895a4f14618b0dc04e0801b123c55e4a3

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help