summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-12-12 03:16:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-12-12 03:16:27 +0000
commit06b24111cbe26140dd6be571381f412f04876785 (patch)
treef12943460ea1bf60390d6755d58c22aa0429679c /sys
parent884d435d1e92f9e55eb48e8e9b0d49fae0847ea7 (diff)
do homebrew pmap_changebit pmap_new way
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/pmap.c9
-rw-r--r--sys/arch/hppa/include/pmap.h4
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index 0c124a1b117..eef03fed75f 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.28 1999/11/25 18:35:21 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.29 1999/12/12 03:16:26 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -1535,13 +1535,16 @@ pmap_is_referenced(pg)
}
void
-pmap_changebit(pa, set, reset)
- paddr_t pa;
+pmap_changebit(pg, set, reset)
+ vm_page_t pg;
u_int set, reset;
{
register struct pv_entry *pv;
+ register paddr_t pa = VM_PAGE_TO_PHYS(pg);
int s;
+printf("pmap_changebit(%p[%x], %x, %x)\n", pg, pa, set, reset);
+
s = splimp();
if (!(pv = pmap_find_pv(pa)) || !pv->pv_pmap) {
splx(s);
diff --git a/sys/arch/hppa/include/pmap.h b/sys/arch/hppa/include/pmap.h
index 70213bb200c..9b73539f2ef 100644
--- a/sys/arch/hppa/include/pmap.h
+++ b/sys/arch/hppa/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.11 1999/12/09 01:49:43 mickey Exp $ */
+/* $OpenBSD: pmap.h,v 1.12 1999/12/12 03:16:26 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -191,7 +191,7 @@ pmap_prot(struct pmap *pmap, int prot)
}
void pmap_bootstrap __P((vaddr_t *, vaddr_t *));
-void pmap_changebit __P((paddr_t, u_int, u_int));
+void pmap_changebit __P((vm_page_t, u_int, u_int));
#endif /* _KERNEL */
#endif /* _MACHINE_PMAP_H_ */