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.
This commit is contained in:
uwe 2001-12-11 03:28:38 +00:00
parent 814a815542
commit ee71ea68bc
1 changed files with 19 additions and 1 deletions

View File

@ -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.