diff options
-rw-r--r-- | sys/arch/amiga/include/param.h | 7 | ||||
-rw-r--r-- | sys/arch/hp300/include/param.h | 7 | ||||
-rw-r--r-- | sys/arch/mac68k/include/param.h | 7 | ||||
-rw-r--r-- | sys/arch/mips/include/param.h | 7 | ||||
-rw-r--r-- | sys/arch/mvme68k/include/param.h | 7 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/param.h | 11 | ||||
-rw-r--r-- | sys/arch/pmax/include/mips_param.h | 4 | ||||
-rw-r--r-- | sys/arch/sun3/include/param.h | 6 | ||||
-rw-r--r-- | sys/arch/vax/include/param.h | 6 |
9 files changed, 51 insertions, 11 deletions
diff --git a/sys/arch/amiga/include/param.h b/sys/arch/amiga/include/param.h index 3673a2a8c92..9002b8e4ce6 100644 --- a/sys/arch/amiga/include/param.h +++ b/sys/arch/amiga/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.12 2001/05/05 20:56:33 art Exp $ */ +/* $OpenBSD: param.h,v 1.13 2001/05/10 22:46:29 miod Exp $ */ /* $NetBSD: param.h,v 1.35 1997/07/10 08:22:36 veego Exp $ */ /* @@ -53,6 +53,11 @@ #define MACHINE "amiga" #define PGSHIFT 13 /* LOG2(NBPG) */ + +#define PAGE_SHIFT 13 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define KERNBASE 0x00000000 /* start of kernel virtual */ #define SEGSHIFT 24 /* LOG2(NBSEG) [68030 value] */ 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) */ diff --git a/sys/arch/mac68k/include/param.h b/sys/arch/mac68k/include/param.h index 9fc0fa2bbe9..ff3cbb65b5e 100644 --- a/sys/arch/mac68k/include/param.h +++ b/sys/arch/mac68k/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.11 2001/05/05 20:56:40 art Exp $ */ +/* $OpenBSD: param.h,v 1.12 2001/05/10 22:46:35 miod Exp $ */ /* $NetBSD: param.h,v 1.28 1997/03/01 06:57:45 scottr Exp $ */ /* @@ -91,6 +91,11 @@ #define MACHINE "mac68k" #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) */ diff --git a/sys/arch/mips/include/param.h b/sys/arch/mips/include/param.h index 09d7aa991c8..a3511234534 100644 --- a/sys/arch/mips/include/param.h +++ b/sys/arch/mips/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.3 2001/05/05 20:56:42 art Exp $ */ +/* $OpenBSD: param.h,v 1.4 2001/05/10 22:46:38 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -69,6 +69,11 @@ #define NBPG 4096 /* bytes/page */ #define PGOFSET (NBPG-1) /* byte offset into page */ #define PGSHIFT 12 /* LOG2(NBPG) */ + +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define NPTEPG (NBPG/4) #define NBSEG 0x400000 /* bytes/segment */ 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) */ diff --git a/sys/arch/mvme88k/include/param.h b/sys/arch/mvme88k/include/param.h index 1611c25078d..ecd1cdc0f64 100644 --- a/sys/arch/mvme88k/include/param.h +++ b/sys/arch/mvme88k/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.16 2001/05/05 20:56:46 art Exp $ */ +/* $OpenBSD: param.h,v 1.17 2001/05/10 22:46:43 miod Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * Copyright (c) 1988 University of Utah. @@ -40,7 +40,7 @@ * from: Utah $Hdr: machparam.h 1.11 89/08/14$ * * @(#)param.h 7.8 (Berkeley) 6/28/91 - * $Id: param.h,v 1.16 2001/05/05 20:56:46 art Exp $ + * $Id: param.h,v 1.17 2001/05/10 22:46:43 miod Exp $ */ #ifndef _MACHINE_PARAM_H_ #define _MACHINE_PARAM_H_ @@ -70,11 +70,14 @@ #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) & ~ALIGNBYTES) #define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) -#ifndef NBPG #define NBPG 4096 /* bytes/page */ -#endif /* NBPG */ #define PGOFSET (NBPG-1) /* byte offset into page */ #define PGSHIFT 12 /* LOG2(NBPG) */ + +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define NPTEPG (NBPG/(sizeof(u_int))) #define NBSEG (1<<22) /* bytes/segment */ diff --git a/sys/arch/pmax/include/mips_param.h b/sys/arch/pmax/include/mips_param.h index 90cf8159203..bf934e1a429 100644 --- a/sys/arch/pmax/include/mips_param.h +++ b/sys/arch/pmax/include/mips_param.h @@ -17,6 +17,10 @@ #define PGSHIFT 12 /* LOG2(NBPG) */ #define NPTEPG (NBPG/4) +#define PAGE_SHIFT 12 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define NBSEG 0x400000 /* bytes/segment */ #define SEGOFSET (NBSEG-1) /* byte offset into segment */ #define SEGSHIFT 22 /* LOG2(NBSEG) */ diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h index 58d4a5b9749..b9954bc9b85 100644 --- a/sys/arch/sun3/include/param.h +++ b/sys/arch/sun3/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.22 2001/05/05 20:56:53 art Exp $ */ +/* $OpenBSD: param.h,v 1.23 2001/05/10 22:46:49 miod Exp $ */ /* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */ /* @@ -60,6 +60,10 @@ #define PGSHIFT 13 /* LOG2(NBPG) */ +#define PAGE_SHIFT 13 +#define PAGE_SIZE (1 << PAGE_SHIFT) +#define PAGE_MASK (PAGE_SHIFT - 1) + #define NBSG 0x20000 /* bytes/segment */ #define SEGOFSET (NBSG-1) /* byte offset into segment */ #define SEGSHIFT 17 /* LOG2(NBSG) */ 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) |