* Re: [Fwd: sigcontext on Linux-ppc in user space]
[not found] <OF38EA3C4D.2A886AF4-ON852569DF.00530F62@LocalDomain>
@ 2001-01-25 19:03 ` Roman Zippel
0 siblings, 0 replies; 2+ messages in thread
From: Roman Zippel @ 2001-01-25 19:03 UTC (permalink / raw)
To: jekacur; +Cc: linuxppc-dev
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Fwd: sigcontext on Linux-ppc in user space]
[not found] <200101251810.f0PIAeH04079@ashley.ivey.uwo.ca>
@ 2001-01-25 20:24 ` iweiny
0 siblings, 0 replies; 2+ messages in thread
From: iweiny @ 2001-01-25 20:24 UTC (permalink / raw)
To: linuxppc-dev
I don't know if this helps or not but,
I get similar results from my 2 machines.
Machine 1 (2.2.18 glibc 2.1.3-4e)
12:17pm >./a.out
SIGUSR1 = 10
scp = 7ffff694
scp->signal = 0
Machine 2 (2.4.1 glibc 2.1.3-4e) <= very recent BK kernel
11:21am >./a.out
SIGUSR1 = 10
scp = 7ffff634
scp->signal = 0
Ira
--- To quote Kevin B. Hendricks: ---
>
>
> Hi,
>
> Here is what I get from running it on my system (ppc linux with 2.2.15 kernel with some mods and glibc-2.1.3).
>
> But no segfault.
>
> Kevin
>
>
> [kbhend@localhost ~]$ gcc -O2 -ojunk junk.c
> [kbhend@localhost ~]$ ./junk
> SIGUSR1 = 10
> scp = 7fffe9a4
> scp->signal = 0
> [kbhend@localhost ~]$
>
>
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-25 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200101251810.f0PIAeH04079@ashley.ivey.uwo.ca>
2001-01-25 20:24 ` [Fwd: sigcontext on Linux-ppc in user space] iweiny
[not found] <OF38EA3C4D.2A886AF4-ON852569DF.00530F62@LocalDomain>
2001-01-25 19:03 ` Roman Zippel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox