diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-11-07 19:22:57 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-11-07 19:22:57 +0000 |
commit | 24eeb1d7c461cc9e4d92c51d2a2456b6dba5c7ea (patch) | |
tree | f4302a35de3cd5eebae90b3385c91dc54306fced /sys/arch | |
parent | 18b68ed347fbebe0f0927e22e66a50f1f58ea85c (diff) |
pmap_[de]activate() are not nops; w/ art@'s help
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/pmap.c | 18 | ||||
-rw-r--r-- | sys/arch/hppa/include/pmap.h | 4 |
2 files changed, 18 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c index 8fdb3f8cc2a..f9c428f7a3b 100644 --- a/sys/arch/hppa/hppa/pmap.c +++ b/sys/arch/hppa/hppa/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.89 2002/11/07 19:18:18 mickey Exp $ */ +/* $OpenBSD: pmap.c,v 1.90 2002/11/07 19:22:56 mickey Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -1065,6 +1065,22 @@ pmap_extract(pmap, va, pap) return (FALSE); } +void +pmap_activate(struct proc *p) +{ + struct pmap *pmap = p->p_vmspace->vm_map.pmap; + struct pcb *pcb = &p->p_addr->u_pcb;; + + pcb->pcb_space = pmap->pm_space; + pcb->pcb_uva = (vaddr_t)p->p_addr; +} + +void +pmap_deactivate(struct proc *p) +{ + +} + static __inline void pmap_flush_page(struct vm_page *pg, int purge) { diff --git a/sys/arch/hppa/include/pmap.h b/sys/arch/hppa/include/pmap.h index 0e9e6994c95..019b26f9e41 100644 --- a/sys/arch/hppa/include/pmap.h +++ b/sys/arch/hppa/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.25 2002/10/28 20:49:16 mickey Exp $ */ +/* $OpenBSD: pmap.h,v 1.26 2002/11/07 19:22:56 mickey Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -107,8 +107,6 @@ extern struct pdc_hwtlb pdc_hwtlb; #define pmap_kernel() (&kernel_pmap_store) #define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count) #define pmap_update(pm) (void)(pm) -#define pmap_activate(pm) (void)(pm) -#define pmap_deactivate(pm) (void)(pm) #define pmap_copy(dpmap,spmap,da,len,sa) #define pmap_clear_modify(pg) pmap_changebit(pg, 0, PTE_PROT(TLB_DIRTY)) |