diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-02-19 21:56:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-02-19 21:56:29 +0000 |
commit | 372a7dfd4b95b87ff1af26ce93abe967e20225af (patch) | |
tree | 3d02024f5c0c66eb5e50c07a6b0e42c98796eb89 /sys | |
parent | 0379b38f13e9a6e8e8f6ef6459165fc5673b3856 (diff) |
Provide PAGE_{MASK,SHIFT,SIZE} ``constants'' for every cpu combination.
Fixes PR #2219
Diffstat (limited to 'sys')
-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 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_ */ |