summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amiga/amiga/pmap.c9
-rw-r--r--sys/arch/hp300/hp300/pmap.c13
-rw-r--r--sys/arch/mac68k/mac68k/pmap.c13
-rw-r--r--sys/arch/mvme68k/mvme68k/pmap.c9
-rw-r--r--sys/arch/mvme88k/mvme88k/pmap.c10
5 files changed, 28 insertions, 26 deletions
diff --git a/sys/arch/amiga/amiga/pmap.c b/sys/arch/amiga/amiga/pmap.c
index 4f76f86c587..a40aab2b1c1 100644
--- a/sys/arch/amiga/amiga/pmap.c
+++ b/sys/arch/amiga/amiga/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.12 1999/01/11 05:11:05 millert Exp $ */
+/* $OpenBSD: pmap.c,v 1.13 1999/07/18 16:23:46 deraadt Exp $ */
/* $NetBSD: pmap.c,v 1.39 1997/06/10 18:26:41 veego Exp $ */
/*
@@ -277,7 +277,7 @@ void pmap_enter_ptpage __P((register pmap_t, register vm_offset_t));
pa < vm_last_phys)
#endif
-void pmap_activate __P((register pmap_t, struct pcb *));
+void pmap_activate __P((register pmap_t));
extern vm_offset_t reserve_dumppages __P((vm_offset_t));
static void amiga_protection_init __P((void));
void pmap_check_wiring __P((char *, vm_offset_t));
@@ -1925,10 +1925,11 @@ ok:
}
void
-pmap_activate(pmap, pcbp)
+pmap_activate(pmap)
register pmap_t pmap;
- struct pcb *pcbp;
{
+ struct pcb *pcbp = &p->p_addr->u_pcb;
+
#ifdef DEBUG
if (pmapdebug & (PDB_FOLLOW|PDB_SEGTAB))
printf("pmap_activate(%p, %p)\n", pmap, pcbp);
diff --git a/sys/arch/hp300/hp300/pmap.c b/sys/arch/hp300/hp300/pmap.c
index c1022b9a0d9..b388653699d 100644
--- a/sys/arch/hp300/hp300/pmap.c
+++ b/sys/arch/hp300/hp300/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.10 1999/01/11 05:11:20 millert Exp $ */
+/* $OpenBSD: pmap.c,v 1.11 1999/07/18 16:23:46 deraadt Exp $ */
/* $NetBSD: pmap.c,v 1.36 1997/06/10 18:52:23 veego Exp $ */
/*
@@ -294,8 +294,8 @@ int protostfree; /* prototype (default) free ST map */
struct pv_entry *pmap_alloc_pv __P((void));
void pmap_free_pv __P((struct pv_entry *));
void pmap_collect_pv __P((void));
-void pmap_activate __P((pmap_t, struct pcb *));
-void pmap_deactivate __P((pmap_t, struct pcb *));
+void pmap_activate __P((pmap_t));
+void pmap_deactivate __P((pmap_t));
#ifdef COMPAT_HPUX
int pmap_mapmulti __P((pmap_t, vm_offset_t));
#endif /* COMPAT_HPUX */
@@ -804,10 +804,10 @@ pmap_reference(pmap)
}
void
-pmap_activate(pmap, pcb)
+pmap_activate(pmap)
pmap_t pmap;
- struct pcb *pcb;
{
+ struct pcb *pcb = &p->p_addr->u_pcb;
if (pmap == NULL)
return;
@@ -821,9 +821,8 @@ pmap_activate(pmap, pcb)
}
void
-pmap_deactivate(pmap, pcb)
+pmap_deactivate(pmap)
pmap_t pmap;
- struct pcb *pcb;
{
}
diff --git a/sys/arch/mac68k/mac68k/pmap.c b/sys/arch/mac68k/mac68k/pmap.c
index 607de2e0566..e284b86482d 100644
--- a/sys/arch/mac68k/mac68k/pmap.c
+++ b/sys/arch/mac68k/mac68k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.12 1999/04/24 06:39:41 downsj Exp $ */
+/* $OpenBSD: pmap.c,v 1.13 1999/07/18 16:23:47 deraadt Exp $ */
/* $NetBSD: pmap.c,v 1.28 1996/10/21 05:42:27 scottr Exp $ */
/*
@@ -792,13 +792,13 @@ pmap_reference(pmap)
}
void loadustp __P((vm_offset_t));
-void pmap_activate __P((register pmap_t, struct pcb *));
+void pmap_activate __P((register pmap_t));
void
-pmap_activate(pmap, pcbp)
+pmap_activate(pmap)
register pmap_t pmap;
- struct pcb *pcbp;
{
+ struct pcb *pcbp = &p->p_addr->u_pcb;
if (pmap == NULL)
return;
@@ -811,12 +811,11 @@ pmap_activate(pmap, pcbp)
PMAP_ACTIVATE(pmap, pcbp, pmap == curproc->p_vmspace->vm_map.pmap);
}
-void pmap_deactivate __P((register pmap_t, struct pcb *));
+void pmap_deactivate __P((register pmap_t));
void
-pmap_deactivate(pmap, pcb)
+pmap_deactivate(pmap)
register pmap_t pmap;
- struct pcb *pcb;
{
}
diff --git a/sys/arch/mvme68k/mvme68k/pmap.c b/sys/arch/mvme68k/mvme68k/pmap.c
index f20ef5c9b2b..502fe7527f1 100644
--- a/sys/arch/mvme68k/mvme68k/pmap.c
+++ b/sys/arch/mvme68k/mvme68k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.8 1999/01/11 05:11:39 millert Exp $ */
+/* $OpenBSD: pmap.c,v 1.9 1999/07/18 16:23:47 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -909,10 +909,10 @@ pmap_reference(pmap)
}
void
-pmap_activate(pmap, pcb)
+pmap_activate(pmap)
register pmap_t pmap;
- struct pcb *pcb;
{
+ struct pcb *pcb = &p->p_addr->u_pcb;
if (pmap == NULL)
return;
@@ -926,9 +926,8 @@ pmap_activate(pmap, pcb)
}
void
-pmap_deactivate(pmap, pcb)
+pmap_deactivate(pmap)
register pmap_t pmap;
- struct pcb *pcb;
{
}
diff --git a/sys/arch/mvme88k/mvme88k/pmap.c b/sys/arch/mvme88k/mvme88k/pmap.c
index 768392fdea9..d091276d555 100644
--- a/sys/arch/mvme88k/mvme88k/pmap.c
+++ b/sys/arch/mvme88k/mvme88k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.7 1999/05/29 04:41:46 smurph Exp $ */
+/* $OpenBSD: pmap.c,v 1.8 1999/07/18 16:23:47 deraadt Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* All rights reserved.
@@ -3362,8 +3362,10 @@ pmap_collect(pmap_t pmap)
* cpu CPU number
*/
void
-pmap_activate(pmap_t pmap, pcb_t pcb)
+pmap_activate(pmap_t pmap)
{
+ struct pcb *pcb = &p->p_addr->u_pcb;
+
#ifdef lint
my_cpu++;
#endif
@@ -3385,8 +3387,10 @@ pmap_activate(pmap_t pmap, pcb_t pcb)
* pcb pointer to pcb
*/
void
-pmap_deactivate(pmap_t pmap, pcb_t pcb)
+pmap_deactivate(pmap_t pmap)
{
+ struct pcb *pcb = &p->p_addr->u_pcb;
+
#ifdef lint
pmap++; th++; which_cpu++;
#endif