patch-2.4.19 linux-2.4.19/arch/ia64/kernel/signal.c
Next file: linux-2.4.19/arch/ia64/kernel/smpboot.c
Previous file: linux-2.4.19/arch/ia64/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Fri Aug 2 17:39:42 2002
- Orig file:
linux-2.4.18/arch/ia64/kernel/signal.c
- Orig date:
Fri Nov 9 14:26:17 2001
diff -urN linux-2.4.18/arch/ia64/kernel/signal.c linux-2.4.19/arch/ia64/kernel/signal.c
@@ -1,7 +1,7 @@
/*
* Architecture-specific signal handling support.
*
- * Copyright (C) 1999-2001 Hewlett-Packard Co
+ * Copyright (C) 1999-2002 Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com>
*
* Derived from i386 and Alpha versions.
@@ -160,6 +160,7 @@
err |= __put_user((short)from->si_code, &to->si_code);
switch (from->si_code >> 16) {
case __SI_FAULT >> 16:
+ err |= __put_user(from->si_flags, &to->si_flags);
err |= __put_user(from->si_isr, &to->si_isr);
case __SI_POLL >> 16:
err |= __put_user(from->si_addr, &to->si_addr);
@@ -172,7 +173,12 @@
case __SI_PROF >> 16:
err |= __put_user(from->si_uid, &to->si_uid);
err |= __put_user(from->si_pid, &to->si_pid);
- err |= __put_user(from->si_pfm_ovfl, &to->si_pfm_ovfl);
+ if (from->si_code == PROF_OVFL) {
+ err |= __put_user(from->si_pfm_ovfl[0], &to->si_pfm_ovfl[0]);
+ err |= __put_user(from->si_pfm_ovfl[1], &to->si_pfm_ovfl[1]);
+ err |= __put_user(from->si_pfm_ovfl[2], &to->si_pfm_ovfl[2]);
+ err |= __put_user(from->si_pfm_ovfl[3], &to->si_pfm_ovfl[3]);
+ }
break;
default:
err |= __put_user(from->si_uid, &to->si_uid);
@@ -578,10 +584,7 @@
/* FALLTHRU */
default:
- sigaddset(¤t->pending.signal, signr);
- recalc_sigpending(current);
- current->flags |= PF_SIGNALED;
- do_exit(exit_code);
+ sig_exit(signr, exit_code, &info);
/* NOTREACHED */
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)