summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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_ */