summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-12-14 22:08:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-12-14 22:08:03 +0000
commit24f501922f769d6a187798fd60429fdb894330a6 (patch)
tree86bc3870aaaa7543d506c3b535837a45cf7b206b /sys/arch/mvme88k/include
parentf52e5a059a96c9e2974d8a0cf9cdd648ff6a905e (diff)
Replace pmap_testbit/pmap_changebit sequences with a tailor-made pmap_unsetbit
routine, in order to speed up pmap_clear_modify() and pmap_clear_reference().
Diffstat (limited to 'sys/arch/mvme88k/include')
-rw-r--r--sys/arch/mvme88k/include/pmap.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/include/pmap.h b/sys/arch/mvme88k/include/pmap.h
index 5d5a3948f69..373aa4770f3 100644
--- a/sys/arch/mvme88k/include/pmap.h
+++ b/sys/arch/mvme88k/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.31 2003/10/11 22:08:57 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.32 2003/12/14 22:08:01 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991 Carnegie Mellon University
@@ -65,10 +65,14 @@ extern caddr_t vmmap;
#define pmap_phys_address(frame) ((paddr_t)(ptoa(frame)))
#define pmap_copy(dp,sp,d,l,s) do { /* nothing */ } while (0)
-#define pmap_update(pmap) do { /* nothing (yet) */ } while (0)
+#define pmap_update(pmap) do { /* nothing (yet) */ } while (0)
+
+#define pmap_clear_modify(pg) pmap_unsetbit(pg, PG_M)
+#define pmap_clear_reference(pg) pmap_unsetbit(pg, PG_U)
void pmap_bootstrap(vaddr_t, paddr_t *, paddr_t *, vaddr_t *, vaddr_t *);
void pmap_cache_ctrl(pmap_t, vaddr_t, vaddr_t, u_int);
+boolean_t pmap_unsetbit(struct vm_page *, int);
#endif /* _KERNEL */