From ee71ea68bc3d5983722a1c5b538b0e1de4401a6c Mon Sep 17 00:00:00 2001 From: uwe Date: Tue, 11 Dec 2001 03:28:38 +0000 Subject: [PATCH] microSPARC-IIep is a sun4m but with an integrated PCI controller. In a lot of places (like pmap &c) we want it to be treated as SUN4M. But since various low-level things are done very differently from normal sparcs (and since for now it requires a relocated kernel anyway), the MSIIEP kernels are not supposed to support any other system. So when MSIIEP is defined - insist on SUN4M defined and SUN4 and SUN4C not defined. --- sys/arch/sparc/include/param.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 480a5fb34342..110ac6d6a02e 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.49 2001/12/04 00:05:05 darrenr Exp $ */ +/* $NetBSD: param.h,v 1.50 2001/12/11 03:28:38 uwe Exp $ */ /* * Copyright (c) 1992, 1993 @@ -174,6 +174,24 @@ extern void delay __P((unsigned int)); #define DELAY(n) delay(n) #endif /* _LOCORE */ + +/* + * microSPARC-IIep is a sun4m but with an integrated PCI controller. + * In a lot of places (like pmap &c) we want it to be treated as SUN4M. + * But since various low-level things are done very differently from + * normal sparcs (and since for now it requires a relocated kernel + * anyway), the MSIIEP kernels are not supposed to support any other + * system. So insist on SUN4M defined and SUN4 and SUN4C not defined. + */ +#if defined(MSIIEP) +#if defined(SUN4) || defined(SUN4C) +#error "microSPARC-IIep kernels cannot support sun4 or sun4c" +#endif +#if !defined(SUN4M) +#error "microSPARC-IIep kernel must have 'options SUN4M'" +#endif +#endif /* MSIIEP */ + /* * Shorthand CPU-type macros. Enumerate all eight cases. * Let compiler optimize away code conditional on constants.