summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/include
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/sun3/include
parent39bda50ec30c753fd95402c4f12632e9bf2f1195 (diff)
Provide PAGE_{MASK,SHIFT,SIZE} constants.
Diffstat (limited to 'sys/arch/sun3/include')
-rw-r--r--sys/arch/sun3/include/param.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h
index 58d4a5b9749..b9954bc9b85 100644
--- a/sys/arch/sun3/include/param.h
+++ b/sys/arch/sun3/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.22 2001/05/05 20:56:53 art Exp $ */
+/* $OpenBSD: param.h,v 1.23 2001/05/10 22:46:49 miod Exp $ */
/* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */
/*
@@ -60,6 +60,10 @@
#define PGSHIFT 13 /* LOG2(NBPG) */
+#define PAGE_SHIFT 13
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (PAGE_SHIFT - 1)
+
#define NBSG 0x20000 /* bytes/segment */
#define SEGOFSET (NBSG-1) /* byte offset into segment */
#define SEGSHIFT 17 /* LOG2(NBSG) */