patch: POSIX.1b signals for ppc
Hello,
I added the support for calling a signal handler with three arguments:
signo, siginfo and the ucontext . Althogh it's been tested on a ppc850 platform, I would like to ask you to test it on other ppc platforms.
diff -urN linux-2.3.99-pre5/arch/ppc/kernel/entry.S linux-2.3.99-pre5-ga/arch/ppc/kernel/entry.S
arch/ppc/kernel/entry.S Fri Apr 14 10:37:22 2000 renamed from arch/ppc/kernel/entry.S Mon Mar 6 16:52:14 2000 +12 -0
@@ -20,6 +20,10 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. + * + * 2000-04-10. + * Add sys_rt_sigreturn in DoSyscall Handler. + * Giovanna Ambrosini ([email protected]). * */
@@ -83,6 +87,8 @@ #endif /* SHOW_SYSCALLS */ cmpi 0,r0,0x7777 /* Special case for 'sys_sigreturn' */ beq- 10f + cmpi 0,r0,0x6666 /* Special case for 'sys_rt_sigreturn' */ + beq- 16f lwz r10,TASK_FLAGS(r2) andi. r10,r10,PF_TRACESYS bne- 50f
@@ -129,6 +135,12 @@ /* sys_sigreturn */ 10: addi r3,r1,STACK_FRAME_OVERHEAD bl sys_sigreturn + cmpi 0,r3,0 /* Check for restarted system call */ + bge ret_from_except + b 20b +/* sys_rt_sigreturn */ +16: addi r3,r1,STACK_FRAME_OVERHEAD + bl sys_rt_sigreturn cmpi 0,r3,0 /* Check for restarted system call */ bge ret_from_except b 20b
arch/ppc/kernel/signal.c Fri Apr 14 14:25:11 2000 renamed from arch/ppc/kernel/signal.c Tue Dec 14 15:40:29 1999 +199 -22
282 lines not on this page · raw message
include/asm-ppc/ucontext.h Fri Apr 14 10:30:41 2000 renamed from include/asm-ppc/ucontext.h Tue Jan 13 00:18:13 1998 +1 -0
@@ -7,6 +7,7 @@ unsigned long uc_flags; struct ucontext *uc_link; stack_t uc_stack; + struct sigcontext_struct uc_mcontext; sigset_t uc_sigmask; /* mask last for extensibility */ };
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/