diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-25 08:46:45 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-25 08:46:45 +0000 |
commit | dad9daf5f671c0925fdbfc510416e00125fc2aa1 (patch) | |
tree | 134b7cbdd0f78f3ede7cbca6a76eb0a7e21b12f0 /sys/arch/sparc | |
parent | ba4552c91a02b195c5244f9770d9d90683871654 (diff) |
In the cases where we are sure what page size we have, define PAGE_SIZE
(and friends).
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/include/param.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 756be97264b..84812a39f86 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.11 1999/07/09 21:33:37 art Exp $ */ +/* $OpenBSD: param.h,v 1.12 1999/11/25 08:46:44 art Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -233,6 +233,9 @@ extern int mmumod; # define NBPG 4096 # define PGOFSET (NBPG-1) # define PGSHIFT SUN4CM_PGSHIFT +# define PAGE_SIZE 4096 +# define PAGE_MASK (PAGE_SIZE - 1) +# define PAGE_SHIFT SUN4CM_PGSHIFT #elif defined(SUN4M) && !defined(SUN4C) && defined(SUN4) # define CPU_ISSUN4M (cputyp == CPU_SUN4M) # define CPU_ISSUN4C (0) @@ -251,6 +254,9 @@ extern int mmumod; # define NBPG 4096 # define PGOFSET (NBPG-1) # define PGSHIFT SUN4CM_PGSHIFT +# define PAGE_SIZE 4096 +# define PAGE_MASK (PAGE_SIZE - 1) +# define PAGE_SHIFT SUN4CM_PGSHIFT #elif !defined(SUN4M) && defined(SUN4C) && defined(SUN4) # define CPU_ISSUN4M (0) # define CPU_ISSUN4C (cputyp == CPU_SUN4C) @@ -269,6 +275,9 @@ extern int mmumod; # define NBPG 4096 # define PGOFSET (NBPG-1) # define PGSHIFT SUN4CM_PGSHIFT +# define PAGE_SIZE 4096 +# define PAGE_MASK (PAGE_SIZE - 1) +# define PAGE_SHIFT SUN4CM_PGSHIFT #elif !defined(SUN4M) && !defined(SUN4C) && defined(SUN4) # define CPU_ISSUN4M (0) # define CPU_ISSUN4C (0) @@ -278,6 +287,9 @@ extern int mmumod; # define NBPG 8192 # define PGOFSET (NBPG-1) # define PGSHIFT SUN4_PGSHIFT +# define PAGE_SIZE 8192 +# define PAGE_MASK (PAGE_SIZE - 1) +# define PAGE_SHIFT SUN4_PGSHIFT #elif !defined(SUN4M) && !defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (cputyp == CPU_SUN4M) # define CPU_ISSUN4C (cputyp == CPU_SUN4C) |