diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-05-13 02:37:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-05-13 02:37:31 +0000 |
commit | 0703ff606a414920f3d89d3bb9ad685aaed9ca0f (patch) | |
tree | 35e4ec73a5bfc4958e997feca5bfa340ff1783b6 /sys/arch | |
parent | 8e5a89c3798af4f4558df82e55d42d8c3e8f3f7e (diff) |
PAGE_MASK is (PAGE_SIZE - 1), *not* (PAGE_SHIFT - 1)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amiga/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/hp300/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/mac68k/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/mips/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/param.h | 6 | ||||
-rw-r--r-- | sys/arch/sun3/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/vax/include/param.h | 4 |
8 files changed, 17 insertions, 17 deletions
diff --git a/sys/arch/amiga/include/param.h b/sys/arch/amiga/include/param.h index 9002b8e4ce6..51c27745fd8 100644 --- a/sys/arch/amiga/include/param.h +++ b/sys/arch/amiga/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.13 2001/05/10 22:46:29 miod Exp $ */ +/* $OpenBSD: param.h,v 1.14 2001/05/13 02:37:28 millert Exp $ */ /* $NetBSD: param.h,v 1.35 1997/07/10 08:22:36 veego Exp $ */ /* @@ -56,7 +56,7 @@ #define PAGE_SHIFT 13 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define KERNBASE 0x00000000 /* start of kernel virtual */ diff --git a/sys/arch/hp300/include/param.h b/sys/arch/hp300/include/param.h index 44386ac5627..ec0e36c04f0 100644 --- a/sys/arch/hp300/include/param.h +++ b/sys/arch/hp300/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.12 2001/05/10 22:46:32 miod Exp $ */ +/* $OpenBSD: param.h,v 1.13 2001/05/13 02:37:29 millert Exp $ */ /* $NetBSD: param.h,v 1.35 1997/07/10 08:22:38 veego Exp $ */ /* @@ -61,7 +61,7 @@ #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define KERNBASE 0x00000000 /* start of kernel virtual */ diff --git a/sys/arch/mac68k/include/param.h b/sys/arch/mac68k/include/param.h index ff3cbb65b5e..e5685bfaf08 100644 --- a/sys/arch/mac68k/include/param.h +++ b/sys/arch/mac68k/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.12 2001/05/10 22:46:35 miod Exp $ */ +/* $OpenBSD: param.h,v 1.13 2001/05/13 02:37:29 millert Exp $ */ /* $NetBSD: param.h,v 1.28 1997/03/01 06:57:45 scottr Exp $ */ /* @@ -94,7 +94,7 @@ #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define KERNBASE 0x00000000 /* start of kernel virtual */ diff --git a/sys/arch/mips/include/param.h b/sys/arch/mips/include/param.h index a3511234534..7dd123c4a3f 100644 --- a/sys/arch/mips/include/param.h +++ b/sys/arch/mips/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.4 2001/05/10 22:46:38 miod Exp $ */ +/* $OpenBSD: param.h,v 1.5 2001/05/13 02:37:29 millert Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -72,7 +72,7 @@ #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define NPTEPG (NBPG/4) diff --git a/sys/arch/mvme68k/include/param.h b/sys/arch/mvme68k/include/param.h index 21242e75052..f261b41c954 100644 --- a/sys/arch/mvme68k/include/param.h +++ b/sys/arch/mvme68k/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.10 2001/05/10 22:46:41 miod Exp $ */ +/* $OpenBSD: param.h,v 1.11 2001/05/13 02:37:29 millert Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -65,7 +65,7 @@ #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define NPTEPG (NBPG/(sizeof (pt_entry_t))) diff --git a/sys/arch/mvme88k/include/param.h b/sys/arch/mvme88k/include/param.h index ecd1cdc0f64..4d00d829a42 100644 --- a/sys/arch/mvme88k/include/param.h +++ b/sys/arch/mvme88k/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.17 2001/05/10 22:46:43 miod Exp $ */ +/* $OpenBSD: param.h,v 1.18 2001/05/13 02:37:29 millert 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.17 2001/05/10 22:46:43 miod Exp $ + * $Id: param.h,v 1.18 2001/05/13 02:37:29 millert Exp $ */ #ifndef _MACHINE_PARAM_H_ #define _MACHINE_PARAM_H_ @@ -76,7 +76,7 @@ #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define NPTEPG (NBPG/(sizeof(u_int))) diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h index b9954bc9b85..6d23941a3ad 100644 --- a/sys/arch/sun3/include/param.h +++ b/sys/arch/sun3/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.23 2001/05/10 22:46:49 miod Exp $ */ +/* $OpenBSD: param.h,v 1.24 2001/05/13 02:37:30 millert Exp $ */ /* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */ /* @@ -62,7 +62,7 @@ #define PAGE_SHIFT 13 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define NBSG 0x20000 /* bytes/segment */ #define SEGOFSET (NBSG-1) /* byte offset into segment */ diff --git a/sys/arch/vax/include/param.h b/sys/arch/vax/include/param.h index 6c0d5046f6a..e58ff558805 100644 --- a/sys/arch/vax/include/param.h +++ b/sys/arch/vax/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.16 2001/05/10 22:46:52 miod Exp $ */ +/* $OpenBSD: param.h,v 1.17 2001/05/13 02:37:30 millert 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. @@ -73,7 +73,7 @@ #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SHIFT - 1) +#define PAGE_MASK (PAGE_SIZE - 1) #define VAX_PGSHIFT 9 #define VAX_NBPG (1 << VAX_PGSHIFT) |