patch-2.4.4 linux/arch/s390x/kernel/signal.c

Next file: linux/arch/s390x/kernel/signal32.c
Previous file: linux/arch/s390x/kernel/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/arch/s390x/kernel/signal.c linux/arch/s390x/kernel/signal.c
@@ -188,7 +188,7 @@
 	int err;
 	s390_fp_regs fpregs;
   
-	err = __copy_to_user(&sregs->regs,regs,sizeof(s390_regs_common));
+	err = __copy_to_user(&sregs->regs,regs,sizeof(_s390_regs_common));
 	if(!err)
 	{
 		save_fp_regs(&fpregs);
@@ -203,7 +203,7 @@
 	int err;
 	s390_fp_regs fpregs;
 	psw_t saved_psw=regs->psw;
-	err=__copy_from_user(regs,&sregs->regs,sizeof(s390_regs_common));
+	err=__copy_from_user(regs,&sregs->regs,sizeof(_s390_regs_common));
 	if(!err)
 	{
 		regs->orig_gpr2 = -1;		/* disable syscall checks */
@@ -219,7 +219,7 @@
 }
 
 static int
-restore_sigcontext(struct sigcontext *sc, pt_regs *regs,
+restore_sigcontext(struct sigcontext *sc, struct pt_regs *regs,
 		 _sigregs *sregs,sigset_t *set)
 {
 	unsigned int err;
@@ -562,6 +562,7 @@
 
 			case SIGQUIT: case SIGILL: case SIGTRAP:
 			case SIGABRT: case SIGFPE: case SIGSEGV:
+			case SIGBUS: case SIGSYS: case SIGXCPU: case SIGXFSZ:
                                 if (do_coredump(signr, regs))
                                         exit_code |= 0x80;
                                 /* FALLTHRU */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)