diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-12-21 21:19:50 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-12-21 21:19:50 +0000 |
commit | 656cc4483f6c53826da4e0dc3418bb88e1656132 (patch) | |
tree | 7fe01d3911298adab00592ac35eb086289aee17b | |
parent | 00c85d258d9469905416e38363c6546afa6e178d (diff) |
ifdef some definitions of NBPG that use kernel variables, when the
file is included from userland programs (such as lsof)
-rw-r--r-- | sys/arch/sparc/include/param.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 9f6ad8aaa18..dbd498a41b3 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.7 1997/09/17 17:44:06 downsj Exp $ */ +/* $OpenBSD: param.h,v 1.8 1997/12/21 21:19:49 angelos Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -215,9 +215,11 @@ extern int mmumod; # define CPU_ISSUN4 (cputyp == CPU_SUN4) # define CPU_ISSUN4OR4C (cputyp == CPU_SUN4 || cputyp == CPU_SUN4C) # define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C || cputyp == CPU_SUN4M) +#if defined(_KERNEL) && !defined(_LOCORE) # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +#endif #elif defined(SUN4M) && defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (cputyp == CPU_SUN4M) # define CPU_ISSUN4C (cputyp == CPU_SUN4C) @@ -233,9 +235,11 @@ extern int mmumod; # define CPU_ISSUN4 (cputyp == CPU_SUN4) # define CPU_ISSUN4OR4C (cputyp == CPU_SUN4) # define CPU_ISSUN4COR4M (cputyp == CPU_SUN4M) +#if defined(_KERNEL) && !defined(_LOCORE) # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +#endif #elif defined(SUN4M) && !defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (1) # define CPU_ISSUN4C (0) @@ -251,9 +255,11 @@ extern int mmumod; # define CPU_ISSUN4 (cputyp == CPU_SUN4) # define CPU_ISSUN4OR4C (1) # define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C) +#if defined(_KERNEL) && !defined(_LOCORE) # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift +#endif #elif !defined(SUN4M) && defined(SUN4C) && !defined(SUN4) # define CPU_ISSUN4M (0) # define CPU_ISSUN4C (1) @@ -278,7 +284,9 @@ extern int mmumod; # define CPU_ISSUN4 (cputyp == CPU_SUN4) # define CPU_ISSUN4OR4C (cputyp == CPU_SUN4 || cputyp == CPU_SUN4C) # define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C || cputyp == CPU_SUN4M) +#if defined(_KERNEL) && !defined(_LOCORE) # define NBPG nbpg # define PGOFSET pgofset # define PGSHIFT pgshift #endif +#endif |