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/vax/include | |
parent | 39bda50ec30c753fd95402c4f12632e9bf2f1195 (diff) |
Provide PAGE_{MASK,SHIFT,SIZE} constants.
Diffstat (limited to 'sys/arch/vax/include')
-rw-r--r-- | sys/arch/vax/include/param.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/vax/include/param.h b/sys/arch/vax/include/param.h index ea94b91ea62..6c0d5046f6a 100644 --- a/sys/arch/vax/include/param.h +++ b/sys/arch/vax/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.15 2001/05/09 15:31:27 art Exp $ */ +/* $OpenBSD: param.h,v 1.16 2001/05/10 22:46:52 miod Exp $ */ /* $NetBSD: param.h,v 1.39 1999/10/22 21:14:34 ragge Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -71,6 +71,10 @@ #define NBPG (1 << PGSHIFT) /* (1 << PGSHIFT) bytes/page */ #define PGOFSET (NBPG - 1) /* byte offset into page */ +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define VAX_PGSHIFT 9 #define VAX_NBPG (1 << VAX_PGSHIFT) #define VAX_PGOFSET (VAX_NBPG - 1) |