From fd8ac8b221e6122226da45565f6e3c07247555cd Mon Sep 17 00:00:00 2001 From: pk Date: Tue, 22 Oct 1996 19:11:19 +0000 Subject: [PATCH] If no specific kernel architecture is requested, define the CPU_* and NBPG et.al. as in the generic case. This would be the expected thing to do when compiling LKMs and such. --- sys/arch/sparc/include/param.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 1af0a39af5a3..c58bee6ca265 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.26 1996/10/20 20:26:52 pk Exp $ */ +/* $NetBSD: param.h,v 1.27 1996/10/22 19:11:19 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -284,12 +284,12 @@ extern int mmumod; # define PGOFSET (NBPG-1) # define PGSHIFT SUN4_PGSHIFT #elif !defined(SUN4M) && !defined(SUN4C) && !defined(SUN4) -# define CPU_ISSUN4M (0) -# define CPU_ISSUN4C (0) -# define CPU_ISSUN4 (0) -# define CPU_ISSUN4OR4C (0) -# define CPU_ISSUN4COR4M (0) -# define NBPG (0) -# define PGOFSET (0) -# define PGSHIFT (0) +# define CPU_ISSUN4M (cputyp == CPU_SUN4M) +# define CPU_ISSUN4C (cputyp == CPU_SUN4C) +# define CPU_ISSUN4 (cputyp == CPU_SUN4) +# define CPU_ISSUN4OR4C (cputyp == CPU_SUN4 || cputyp == CPU_SUN4C) +# define CPU_ISSUN4COR4M (cputyp == CPU_SUN4C || cputyp == CPU_SUN4M) +# define NBPG nbpg +# define PGOFSET pgofset +# define PGSHIFT pgshift #endif