summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/pmap.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-11 16:35:19 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-11 16:35:19 +0000
commit9a7bdcb62995879108d80fa96fc68f3f32462a6e (patch)
tree3ea35d5fdfe7a6c3c221f8cb27ac44ac5063aa5d /sys/arch/i386/include/pmap.h
parent6757c18891e29a4fcc54e5398f1ce9ee87d249ce (diff)
Merge in some pmap improvements from NetBSD.
- disable pmap_copy (and comment out the code), it makes things slower. - don't return TRUE from pmap_extract if the pte is not valid.
Diffstat (limited to 'sys/arch/i386/include/pmap.h')
-rw-r--r--sys/arch/i386/include/pmap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index 68a81230988..85a94cf264d 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.22 2001/12/08 02:24:06 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.23 2001/12/11 16:35:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -379,10 +379,9 @@ extern int pmap_pg_g; /* do we support PG_G? */
#define pmap_clear_modify(pg) pmap_change_attrs(pg, 0, PG_M)
#define pmap_clear_reference(pg) pmap_change_attrs(pg, 0, PG_U)
-#define pmap_copy(DP,SP,D,L,S) pmap_transfer(DP,SP,D,L,S, FALSE)
+#define pmap_copy(DP,SP,D,L,S)
#define pmap_is_modified(pg) pmap_test_attrs(pg, PG_M)
#define pmap_is_referenced(pg) pmap_test_attrs(pg, PG_U)
-#define pmap_move(DP,SP,D,L,S) pmap_transfer(DP,SP,D,L,S, TRUE)
#define pmap_phys_address(ppn) i386_ptob(ppn)
#define pmap_valid_entry(E) ((E) & PG_V) /* is PDE or PTE valid? */