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/mvme68k | |
parent | 39bda50ec30c753fd95402c4f12632e9bf2f1195 (diff) |
Provide PAGE_{MASK,SHIFT,SIZE} constants.
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/include/param.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/include/param.h b/sys/arch/mvme68k/include/param.h index c8c98e90a3e..21242e75052 100644 --- a/sys/arch/mvme68k/include/param.h +++ b/sys/arch/mvme68k/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.9 2001/05/05 20:56:44 art Exp $ */ +/* $OpenBSD: param.h,v 1.10 2001/05/10 22:46:41 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -62,6 +62,11 @@ #define PGSHIFT 12 /* LOG2(NBPG) */ #define NBPG (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 NPTEPG (NBPG/(sizeof (pt_entry_t))) #define SEGSHIFT 22 /* LOG2(NBSEG) */ |