diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-10 13:34:21 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-10 13:34:21 +0000 |
commit | 771be10e033278ba3fe87b2fad592c9852b3e663 (patch) | |
tree | 0a6d3d603627743134eb50aae080763e88c0d49d /sys/arch/mvme88k | |
parent | a0a5a476bb860c6ea968db2071b67dd7d860bec2 (diff) |
Generalize cpu_set_kpc to take any kind of arg; mostly from NetBSD
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/mvme88k/vm_machdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/mvme88k/mvme88k/vm_machdep.c b/sys/arch/mvme88k/mvme88k/vm_machdep.c index 4f81fb2300a..7b53aefa791 100644 --- a/sys/arch/mvme88k/mvme88k/vm_machdep.c +++ b/sys/arch/mvme88k/mvme88k/vm_machdep.c @@ -41,7 +41,7 @@ * from: Utah $Hdr: vm_machdep.c 1.21 91/04/06$ * from: @(#)vm_machdep.c 7.10 (Berkeley) 5/7/91 * vm_machdep.c,v 1.3 1993/07/07 07:09:32 cgd Exp - * $Id: vm_machdep.c,v 1.5 1998/12/15 05:11:03 smurph Exp $ + * $Id: vm_machdep.c,v 1.6 1999/01/10 13:34:18 niklas Exp $ */ #include <sys/param.h> @@ -137,21 +137,21 @@ cpu_fork(struct proc *p1, struct proc *p2) } void -cpu_set_kpc(struct proc *p, void (*func)(struct proc *)) +cpu_set_kpc(struct proc *p, void (*func)(void *), void *arg) { /* * override func pointer in ksigframe with func. */ struct ksigframe { - void (*func)(struct proc *); - void *proc; + void (*func)(void *); + void *arg; } *ksfp; ksfp = (struct ksigframe *)p->p_addr->u_pcb.kernel_state.pcb_sp; ksfp->func = func; - + ksfp->arg = arg; } /* |