Skip to contentSkip to conversation

patch: POSIX.1b signals for ppc..................

PATCH Giovanna Ambrosini 1 participant 1 message May 25, 2000

lore
Share & tools
lore
#0 lore raw

Hello Cort,
here is the POSIX.1b signals patch for ppc against your latest kernel tree (pre9). It's been tested.
Thank you.

arch/ppc/kernel/entry.S Thu May 25 17:24:30 2000 renamed from arch/ppc/kernel/entry.S Mon May 15 23:53:30 2000 +12 -0
diff -urN linux-2.3.99-pre9/arch/ppc/kernel/entry.S linux-2.3.99-pre9-ga/arch/ppc/kernel/entry.S
@@ -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 Thu May 25 17:24:30 2000 renamed from arch/ppc/kernel/signal.c Fri Nov 19 04:37:03 1999 +199 -22

282 lines not on this page · raw message

include/asm-ppc/ucontext.h Thu May 25 17:24:30 2000 renamed from include/asm-ppc/ucontext.h Sun Nov 28 00:42:33 1999 +1 -0
diff -urN linux-2.3.99-pre9/include/asm-ppc/ucontext.h linux-2.3.99-pre9-ga/include/asm-ppc/ucontext.h
@@ -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/