Thread (1 message) 1 message, 1 author, 2001-01-25

Re: [Fwd: sigcontext on Linux-ppc in user space]

From: Roman Zippel <hidden>
Date: 2001-01-25 19:03:10

Hi,

Could you try the patch below?

bye, Roman

diff -u -r1.1.1.5 signal.c
--- arch/ppc/kernel/signal.c	2000/09/13 17:59:51	1.1.1.5
+++ arch/ppc/kernel/signal.c	2001/01/25 18:59:54
@@ -334,12 +334,12 @@
 	newsp -= __SIGNAL_FRAMESIZE;
 	if (put_user(regs->gpr[1], (unsigned long *)newsp)
 	    || get_user(regs->nip, &rt_sf->uc.uc_mcontext.handler)
-	    || get_user(regs->gpr[3], &rt_sf->uc.uc_mcontext.signal)
-	    || get_user(regs->gpr[4], (unsigned long *)&rt_sf->pinfo)
-	    || get_user(regs->gpr[5], (unsigned long *)&rt_sf->puc))
+	    || get_user(regs->gpr[3], &rt_sf->uc.uc_mcontext.signal))
 		goto badframe;

 	regs->gpr[1] = newsp;
+	regs->gpr[4] = (unsigned long *)&rt_sf->pinfo;
+	regs->gpr[5] = (unsigned long *)&rt_sf->puc;
 	regs->gpr[6] = (unsigned long) rt_sf;
 	regs->link = (unsigned long) frame->tramp;

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help