summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-19 01:11:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-19 01:11:30 +0000
commit59fc07be283119a91a008815f8f1733c2defad52 (patch)
treea17b91665a559b5351b2ebd07bd6c6ebeef81819 /sys
parent3eafe137c85cc5f7dbcaf40d1dd73ecb02ed28da (diff)
PAGE_SIZE (and friends) does not change on alpha.
Make it a constant.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/param.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/param.h b/sys/arch/alpha/include/param.h
index 5bd73b71441..228ebc25678 100644
--- a/sys/arch/alpha/include/param.h
+++ b/sys/arch/alpha/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.14 2000/11/08 21:27:21 ericj Exp $ */
+/* $OpenBSD: param.h,v 1.15 2000/11/19 01:11:29 art Exp $ */
/* $NetBSD: param.h,v 1.30 2000/06/09 16:03:04 thorpej Exp $ */
/*
@@ -74,6 +74,10 @@
#define PGOFSET (NBPG-1) /* byte off. into pg */
#define PGSHIFT ALPHA_PGSHIFT /* LOG2(NBPG) */
+#define PAGE_SHIFT 12
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (PAGE_SIZE - 1)
+
#define KERNBASE 0xfffffc0000230000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)