Skip to contentSkip to conversation

parisc: Pass the 5th and 6th argument for on the stack for 32bit ptraced processes too

PATCH In review Helge Deller 1 participant 2 messages Feb 2, 2013 – Feb 3, 2013 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Pass the 5th and 6th argument for on the stack for 32bit ptraced processes too

Author: John David Anglin <[email protected]>

arch/parisc/kernel/syscall.S +4 -1
index 86742df..c893ec4 100644
@@ -309,10 +309,13 @@ tracesys_next:
 	LDREG   TASK_PT_GR25(%r1), %r25
 	LDREG   TASK_PT_GR24(%r1), %r24
 	LDREG   TASK_PT_GR23(%r1), %r23
-#ifdef CONFIG_64BIT
 	LDREG   TASK_PT_GR22(%r1), %r22
 	LDREG   TASK_PT_GR21(%r1), %r21
+#ifdef CONFIG_64BIT
 	ldo	-16(%r30),%r29			/* Reference param save area */
+#else
+	stw	%r22, -52(%r30)			/* 5th argument */
+	stw	%r21, -56(%r30)			/* 6th argument */
 #endif
 
 	comiclr,>>=	__NR_Linux_syscalls, %r20, %r0
author maintainer
#1 lore raw

This patch was originally submitted by Al Viro:
https://patchwork.kernel.org/patch/1853531/

Quoted 25 lines · Helge Deller

Author: John David Anglin <[email protected]>

arch/parisc/kernel/syscall.S +4 -1
index 86742df..c893ec4 100644
@@ -309,10 +309,13 @@ tracesys_next:
 	LDREG   TASK_PT_GR25(%r1), %r25
 	LDREG   TASK_PT_GR24(%r1), %r24
 	LDREG   TASK_PT_GR23(%r1), %r23
-#ifdef CONFIG_64BIT
 	LDREG   TASK_PT_GR22(%r1), %r22
 	LDREG   TASK_PT_GR21(%r1), %r21
+#ifdef CONFIG_64BIT
 	ldo	-16(%r30),%r29			/* Reference param save area */
+#else
+	stw	%r22, -52(%r30)			/* 5th argument */
+	stw	%r21, -56(%r30)			/* 6th argument */
 #endif
 
 	comiclr,>>=	__NR_Linux_syscalls, %r20, %r0