diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-18 18:00:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-18 18:00:09 +0000 |
commit | c35426ad97986156c2c4ce16c14faf75d3958cfb (patch) | |
tree | f43b8538e08b4e439f1576d60bd550e4267a9369 /sys/arch/mvme88k | |
parent | 4854911214ff2b71bfca3ca143ae340ab11ba7e4 (diff) |
pmap_activate() and pmap_deactivate() are MD
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/include/pmap.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/pmap.c | 12 |
2 files changed, 6 insertions, 10 deletions
diff --git a/sys/arch/mvme88k/include/pmap.h b/sys/arch/mvme88k/include/pmap.h index 2be8bc8e6ff..960e75a0e9c 100644 --- a/sys/arch/mvme88k/include/pmap.h +++ b/sys/arch/mvme88k/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.7 1999/07/18 16:45:54 deraadt Exp $ */ +/* $OpenBSD: pmap.h,v 1.8 1999/07/18 18:00:06 deraadt Exp $ */ /* * Mach Operating System * Copyright (c) 1991 Carnegie Mellon University @@ -91,6 +91,8 @@ 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 86ad289b379..566174e23d5 100644 --- a/sys/arch/mvme88k/mvme88k/pmap.c +++ b/sys/arch/mvme88k/mvme88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.9 1999/07/18 16:45:55 deraadt Exp $ */ +/* $OpenBSD: pmap.c,v 1.10 1999/07/18 18:00:07 deraadt Exp $ */ /* * Copyright (c) 1996 Nivas Madhur * All rights reserved. @@ -3362,11 +3362,8 @@ pmap_collect(pmap_t pmap) * cpu CPU number */ void -pmap_activate(struct proc *p) +pmap_activate(pmap_t pmap, pcb_t pcb) { - struct pcb *pcb = &p->p_addr->u_pcb; - pmap_t pmap = p->p_vmspace->vm_map.pmap; - #ifdef lint my_cpu++; #endif @@ -3388,11 +3385,8 @@ pmap_activate(struct proc *p) * pcb pointer to pcb */ void -pmap_deactivate(p) +pmap_deactivate(pmap_t pmap, pcb_t pcb) { - struct pcb *pcb = &p->p_addr->u_pcb; - pmap_t pmap = p->p_vmspace->vm_map.pmap; - #ifdef lint pmap++; th++; which_cpu++; #endif |