summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-05-20 22:33:18 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-05-20 22:33:18 +0000
commit7bfab854a934a1fd630f90fc609b2e75a1d06439 (patch)
treed8f6ab593a8232ef99758111d5f8479276e4b067 /sys/arch/m88k/include
parent5ee84c2e258c4d0201c3d21a9d39ef93946fdefa (diff)
Make sure pmap copes with address wraparounds when operating on ranges.
This removes the dependency for VM_MAX_ADDRESS to be aligned on a segment boundary. While there, remove a few internal pmap macros from mmu.h.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r--sys/arch/m88k/include/mmu.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/arch/m88k/include/mmu.h b/sys/arch/m88k/include/mmu.h
index ea750372ba3..2ddddbea2d5 100644
--- a/sys/arch/m88k/include/mmu.h
+++ b/sys/arch/m88k/include/mmu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mmu.h,v 1.6 2005/12/02 21:16:45 miod Exp $ */
+/* $OpenBSD: mmu.h,v 1.7 2006/05/20 22:33:16 miod Exp $ */
/*
* This file bears almost no resemblance to the original m68k file,
@@ -183,22 +183,6 @@ typedef u_int32_t pt_ind_entry_t;
#define SDTIDX(va) (((va) & SDT_MASK) >> SDT_SHIFT)
#define PDTIDX(va) (((va) & PDT_MASK) >> PDT_SHIFT)
-/* XXX uses knowledge of pmap structure */
-#define SDTENT(map, va) ((sdt_entry_t *)((map)->pm_stab + SDTIDX(va)))
-
-/*
- * Va spaces mapped by tables and PDT table group.
- */
-
-#define PDT_VA_SPACE (PDT_ENTRIES * PAGE_SIZE)
-
-/*
- * Number of sdt entries used to map user and kernel space.
- */
-
-#define USER_SDT_ENTRIES SDTIDX(VM_MIN_KERNEL_ADDRESS)
-#define KERNEL_SDT_ENTRIES (SDT_ENTRIES - USER_SDT_ENTRIES)
-
/*
* Parameters and macros for BATC
*/