summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include/param.h
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-02-07 06:03:54 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-02-07 06:03:54 +0000
commit7e7b127d8c900c769149ea23b9a4c2ad37f6a7ac (patch)
tree49c9019e6a859c9a774030fd2462285c3e7af906 /sys/arch/powerpc/include/param.h
parent1443a766394af99d480301e1a4cf86af2cbd442f (diff)
Some devices use NPBG others want PAGE_SIZE, and the related macros.
so provide both.
Diffstat (limited to 'sys/arch/powerpc/include/param.h')
-rw-r--r--sys/arch/powerpc/include/param.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/param.h b/sys/arch/powerpc/include/param.h
index 1d45f39ce11..64e7b766bc1 100644
--- a/sys/arch/powerpc/include/param.h
+++ b/sys/arch/powerpc/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.12 2001/01/24 21:17:25 drahn Exp $ */
+/* $OpenBSD: param.h,v 1.13 2001/02/07 06:03:53 drahn Exp $ */
/* $NetBSD: param.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */
/*-
@@ -54,6 +54,9 @@
#define PGSHIFT 12
#define NBPG 4096
#define PGOFSET (NBPG - 1)
+#define PAGE_SIZE NBPG
+#define PAGE_MASK PGOFSET
+#define PAGE_SHIFT PGSHIFT
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
#define DEV_BSIZE (1 << DEV_BSHIFT)