summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-07-18 10:47:06 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-07-18 10:47:06 +0000
commit7014e9bdb5c2bbd8611c221808ec547e916bbb79 (patch)
tree696ce0ce037cffc3cf643967ca0d7b194de7df7a /sys/arch/powerpc/include
parent33fbe5eea52c9938f6f888b886db7cbe2583b9d3 (diff)
Get rid of the PMAP_NEW option by making it mandatory for all archs.
The archs that didn't have a proper PMAP_NEW now have a dummy implementation with wrappers around the old functions.
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r--sys/arch/powerpc/include/pmap.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h
index 1bcba5c2b3e..4d1f268427d 100644
--- a/sys/arch/powerpc/include/pmap.h
+++ b/sys/arch/powerpc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.13 2001/07/10 01:34:32 drahn Exp $ */
+/* $OpenBSD: pmap.h,v 1.14 2001/07/18 10:47:05 art Exp $ */
/* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
@@ -38,10 +38,6 @@
#include <machine/pte.h>
/*
- * FUCK
-#define PMAP_NEW
- */
-/*
* Segment registers
*/
#ifndef _LOCORE
@@ -84,22 +80,11 @@ extern struct pmap kernel_pmap_;
int ptebits(paddr_t pa, int bit);
-#ifdef PMAP_NEW
-#define pmap_clear_modify(page) (ptemodify((page)->phys_addr, PTE_CHG, 0))
-#define pmap_clear_reference(page) (ptemodify((page)->phys_addr, PTE_REF, 0))
-#define pmap_is_modified(page) (ptebits((page)->phys_addr, PTE_CHG))
-#define pmap_is_referenced(page) (ptebits((page)->phys_addr, PTE_REF))
+#define pmap_clear_modify(page) (ptemodify(VM_PAGE_TO_PHYS(page), PTE_CHG, 0))
+#define pmap_clear_reference(page) (ptemodify(VM_PAGE_TO_PHYS(page), PTE_REF, 0))
+#define pmap_is_modified(page) (ptebits(VM_PAGE_TO_PHYS(page), PTE_CHG))
+#define pmap_is_referenced(page) (ptebits(VM_PAGE_TO_PHYS(page), PTE_REF))
#define pmap_unwire(pm, va)
-#else
-#define pmap_clear_modify(pa) (ptemodify((pa), PTE_CHG, 0))
-#define pmap_clear_reference(pa) (ptemodify((pa), PTE_REF, 0))
-#define pmap_is_modified(pa) (ptebits((pa), PTE_CHG))
-#define pmap_is_referenced(pa) (ptebits((pa), PTE_REF))
-#define pmap_unwire(pm, va)
-/* XXX */
-void pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot);
-#endif
-
#define pmap_phys_address(x) (x)
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)