summaryrefslogtreecommitdiff
path: root/sys/arch/pmax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-05-10 22:46:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-05-10 22:46:53 +0000
commit38bf752f89e0ad59c9adef04a0340e68b849798a (patch)
tree62d9767146e227a478f7d62b482678b170a604f1 /sys/arch/pmax
parent39bda50ec30c753fd95402c4f12632e9bf2f1195 (diff)
Provide PAGE_{MASK,SHIFT,SIZE} constants.
Diffstat (limited to 'sys/arch/pmax')
-rw-r--r--sys/arch/pmax/include/mips_param.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/pmax/include/mips_param.h b/sys/arch/pmax/include/mips_param.h
index 90cf8159203..bf934e1a429 100644
--- a/sys/arch/pmax/include/mips_param.h
+++ b/sys/arch/pmax/include/mips_param.h
@@ -17,6 +17,10 @@
#define PGSHIFT 12 /* LOG2(NBPG) */
#define NPTEPG (NBPG/4)
+#define PAGE_SHIFT 12
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (PAGE_SHIFT - 1)
+
#define NBSEG 0x400000 /* bytes/segment */
#define SEGOFSET (NBSEG-1) /* byte offset into segment */
#define SEGSHIFT 22 /* LOG2(NBSEG) */