-/* $OpenBSD: locore.s,v 1.8 1997/02/03 04:47:56 downsj Exp $ */
+/* $OpenBSD: locore.s,v 1.9 1997/02/03 15:54:43 deraadt Exp $ */
/* $NetBSD: locore.s,v 1.62 1996/11/06 20:19:30 cgd Exp $ */
/*
* Stack looks like:
*
* sp+0 -> signal number
- * sp+4 signal specific code
+ * sp+4 pointer to siginfo (sip)
* sp+8 pointer to signal context frame (scp)
- * sp+12 pointer to siginfo (sip)
- * sp+16 address of handler
- * sp+20 saved hardware state
+ * sp+12 address of handler
+ * sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
.globl _sigcode, _esigcode, _sigcodetrap
.data
_sigcode:
- movl sp@(16),a0 | signal handler addr (4 bytes)
+ movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
_sigcodetrap:
-/* $OpenBSD: machdep.c,v 1.13 1997/02/03 12:48:46 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.14 1997/02/03 15:54:45 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.77 1996/12/11 16:49:23 thorpej Exp $ */
/*
*/
struct sigframe {
int sf_signum; /* signo for handler */
- int sf_code; /* additional info for handler */
+ siginfo_t *sf_sip; /* pointer to siginfo_t */
struct sigcontext *sf_scp; /* context ptr for handler */
- siginfo_t *sf_sip;
sig_t sf_handler; /* handler addr for u_sigc */
struct sigstate sf_state; /* state of the hardware */
struct sigcontext sf_sc; /* actual context */
* Build the argument list for the signal handler.
*/
kfp->sf_signum = sig;
- kfp->sf_code = code;
+ kfp->sf_sip = NULL;
kfp->sf_scp = &fp->sf_sc;
kfp->sf_handler = catcher;
- kfp->sf_sip = NULL;
/*
* Save necessary hardware state. Currently this includes: