summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-18 16:45:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-18 16:45:56 +0000
commit14731676789a8c8e582157c68228197d0146adfc (patch)
treea04ef932cefd4d4eb2a9cc5a6362ac82097ccf85 /sys/arch/mvme88k
parent6cd1705862866b49116ca4c1e1c724064c1a0dbe (diff)
fix pmap_activate() and pmap_deactivate() arguments after art changed things
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/include/pmap.h4
-rw-r--r--sys/arch/mvme88k/mvme88k/pmap.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/mvme88k/include/pmap.h b/sys/arch/mvme88k/include/pmap.h
index 625b3efa533..2be8bc8e6ff 100644
--- a/sys/arch/mvme88k/include/pmap.h
+++ b/sys/arch/mvme88k/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.6 1999/05/29 04:41:45 smurph Exp $ */
+/* $OpenBSD: pmap.h,v 1.7 1999/07/18 16:45:54 deraadt Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991 Carnegie Mellon University
@@ -91,8 +91,6 @@ extern pmap_t kernel_pmap;
void _pmap_activate(pmap_t pmap, pcb_t, int my_cpu);
void _pmap_deactivate(pmap_t pmap, pcb_t, int my_cpu);
-void pmap_activate(pmap_t my_pmap, pcb_t);
-void pmap_deactivate(pmap_t pmap, pcb_t);
int pmap_check_transaction(pmap_t pmap, vm_offset_t va, vm_prot_t type);
vm_offset_t pmap_map(
diff --git a/sys/arch/mvme88k/mvme88k/pmap.c b/sys/arch/mvme88k/mvme88k/pmap.c
index d091276d555..86ad289b379 100644
--- a/sys/arch/mvme88k/mvme88k/pmap.c
+++ b/sys/arch/mvme88k/mvme88k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.8 1999/07/18 16:23:47 deraadt Exp $ */
+/* $OpenBSD: pmap.c,v 1.9 1999/07/18 16:45:55 deraadt Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* All rights reserved.
@@ -3362,9 +3362,10 @@ pmap_collect(pmap_t pmap)
* cpu CPU number
*/
void
-pmap_activate(pmap_t pmap)
+pmap_activate(struct proc *p)
{
struct pcb *pcb = &p->p_addr->u_pcb;
+ pmap_t pmap = p->p_vmspace->vm_map.pmap;
#ifdef lint
my_cpu++;
@@ -3387,9 +3388,10 @@ pmap_activate(pmap_t pmap)
* pcb pointer to pcb
*/
void
-pmap_deactivate(pmap_t pmap)
+pmap_deactivate(p)
{
struct pcb *pcb = &p->p_addr->u_pcb;
+ pmap_t pmap = p->p_vmspace->vm_map.pmap;
#ifdef lint
pmap++; th++; which_cpu++;