summaryrefslogtreecommitdiff
path: root/sys/arch/kbus
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/kbus')
-rw-r--r--sys/arch/kbus/include/cpu.h4
-rw-r--r--sys/arch/kbus/kbus/vm_machdep.c7
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/kbus/include/cpu.h b/sys/arch/kbus/include/cpu.h
index b1de5bf7b5a..e77dcc59a81 100644
--- a/sys/arch/kbus/include/cpu.h
+++ b/sys/arch/kbus/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.2 1998/03/01 00:37:34 niklas Exp $ */
+/* $OpenBSD: cpu.h,v 1.3 1999/01/10 13:34:19 niklas Exp $ */
/* $NetBSD: cpu.h,v 1.12 1995/06/28 02:55:56 cgd Exp $ */
/*-
@@ -242,8 +242,6 @@ void kgdb_panic __P((void));
/* pmap.c */
void pmap_bootstrap __P((vm_offset_t));
vm_offset_t pmap_map __P((vm_offset_t, vm_offset_t, vm_offset_t, int));
-/* vm_machdep.c */
-void cpu_set_kpc __P((struct proc *, void (*)(struct proc *)));
/* iommu.c */
void iommu_enter __P((u_int, u_int));
void iommu_remove __P((u_int, u_int));
diff --git a/sys/arch/kbus/kbus/vm_machdep.c b/sys/arch/kbus/kbus/vm_machdep.c
index 56b77a5f768..18a8f77c4a0 100644
--- a/sys/arch/kbus/kbus/vm_machdep.c
+++ b/sys/arch/kbus/kbus/vm_machdep.c
@@ -381,9 +381,10 @@ cpu_swapin(p)
* (Note that cpu_fork(), above, uses an open-coded version of this.)
*/
void
-cpu_set_kpc(p, pc)
+cpu_set_kpc(p, pc, arg)
struct proc *p;
- void (*pc) __P((struct proc *));
+ void (*pc) __P((void *));
+ void *arg;
{
struct pcb *pcb;
struct rwindow *rp;
@@ -392,7 +393,7 @@ cpu_set_kpc(p, pc)
rp = (struct rwindow *)((u_int)pcb + TOPFRAMEOFF);
rp->rw_local[0] = (int)pc; /* Function to call */
- rp->rw_local[1] = (int)p; /* and its argument */
+ rp->rw_local[1] = (int)arg; /* and its argument */
/*
* Frob PCB: