diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-05-10 22:46:53 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-05-10 22:46:53 +0000 |
commit | 38bf752f89e0ad59c9adef04a0340e68b849798a (patch) | |
tree | 62d9767146e227a478f7d62b482678b170a604f1 /sys/arch/hp300 | |
parent | 39bda50ec30c753fd95402c4f12632e9bf2f1195 (diff) |
Provide PAGE_{MASK,SHIFT,SIZE} constants.
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r-- | sys/arch/hp300/include/param.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/hp300/include/param.h b/sys/arch/hp300/include/param.h index 93876420f56..44386ac5627 100644 --- a/sys/arch/hp300/include/param.h +++ b/sys/arch/hp300/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.11 2001/05/05 20:56:35 art Exp $ */ +/* $OpenBSD: param.h,v 1.12 2001/05/10 22:46:32 miod Exp $ */ /* $NetBSD: param.h,v 1.35 1997/07/10 08:22:38 veego Exp $ */ /* @@ -58,6 +58,11 @@ #include <machine/intr.h> #define PGSHIFT 12 /* LOG2(NBPG) */ + +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define KERNBASE 0x00000000 /* start of kernel virtual */ #define SEGSHIFT 22 /* LOG2(NBSEG) */ |