From dad9daf5f671c0925fdbfc510416e00125fc2aa1 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 25 Nov 1999 08:46:45 +0000 Subject: In the cases where we are sure what page size we have, define PAGE_SIZE (and friends). --- sys/arch/sparc/include/param.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/arch/sparc') 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) -- cgit v1.2.3