summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-09-16 02:35:43 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-09-16 02:35:43 +0000
commitba06c0da86e12f6f9e528e62e742385e509a18a0 (patch)
tree62d59870caaf375825a131ec2c8eb5de5261b123 /sys/arch/hppa
parent0ed25d4dd797c8e12cf494719c3cbfed272a6033 (diff)
move the vm_page struct from being stored in RB macro trees to RBT functions
vm_page structs go into three trees, uvm_objtree, uvm_pmr_addr, and uvm_pmr_size. all these have been moved to RBT code. this should give us a decent chunk of code space back.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/pmap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index f85016f34c9..83697b67fc9 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.170 2016/09/15 02:00:17 dlg Exp $ */
+/* $OpenBSD: pmap.c,v 1.171 2016/09/16 02:35:41 dlg Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -269,8 +269,10 @@ pmap_pde_release(struct pmap *pmap, vaddr_t va, struct vm_page *ptp)
pmap_pde_set(pmap, va, 0);
pmap->pm_stats.resident_count--;
- if (pmap->pm_ptphint == ptp)
- pmap->pm_ptphint = RB_ROOT(&pmap->pm_obj.memt);
+ if (pmap->pm_ptphint == ptp) {
+ pmap->pm_ptphint = RBT_ROOT(uvm_objtree,
+ &pmap->pm_obj.memt);
+ }
ptp->wire_count = 0;
#ifdef DIAGNOSTIC
if (ptp->pg_flags & PG_BUSY)
@@ -710,7 +712,7 @@ pmap_destroy(struct pmap *pmap)
if (refs > 0)
return;
- KASSERT(RB_EMPTY(&pmap->pm_obj.memt));
+ KASSERT(RBT_EMPTY(uvm_objtree, &pmap->pm_obj.memt));
pmap_sdir_set(pmap->pm_space, 0);