From 372a7dfd4b95b87ff1af26ce93abe967e20225af Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 19 Feb 2002 21:56:29 +0000 Subject: Provide PAGE_{MASK,SHIFT,SIZE} ``constants'' for every cpu combination. Fixes PR #2219 --- sys/arch/sparc/include/param.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 199b57afd6f..e6b88e4fe84 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.22 2001/12/10 01:05:27 miod Exp $ */ +/* $OpenBSD: param.h,v 1.23 2002/02/19 21:56:28 miod Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -221,6 +221,9 @@ extern int mmumod; # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +# define PAGE_SIZE nbpg +# define PAGE_MASK pgofset +# define PAGE_SHIFT pgshift #elif defined(SUN4M) && defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (cputyp == CPU_SUN4M) # define CPU_ISSUN4C (cputyp == CPU_SUN4C) @@ -242,6 +245,9 @@ extern int mmumod; # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +# define PAGE_SIZE nbpg +# define PAGE_MASK pgofset +# define PAGE_SHIFT pgshift #elif defined(SUN4M) && !defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (1) # define CPU_ISSUN4C (0) @@ -263,6 +269,9 @@ extern int mmumod; # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +# define PAGE_SIZE nbpg +# define PAGE_MASK pgofset +# define PAGE_SHIFT pgshift #elif !defined(SUN4M) && defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (0) # define CPU_ISSUN4C (1) @@ -296,6 +305,9 @@ extern int mmumod; # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +# define PAGE_SIZE nbpg +# define PAGE_MASK pgofset +# define PAGE_SHIFT pgshift #endif #endif /* _SPARC_PARAM_H_ */ -- cgit v1.2.3