Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include microSPARC-IIep is a sun4m but with a...



details:   https://anonhg.NetBSD.org/src/rev/6e87cc5711d0
branches:  trunk
changeset: 519094:6e87cc5711d0
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Dec 11 03:28:38 2001 +0000

description:
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.

diffstat:

 sys/arch/sparc/include/param.h |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r a76e150e2732 -r 6e87cc5711d0 sys/arch/sparc/include/param.h
--- a/sys/arch/sparc/include/param.h    Tue Dec 11 03:24:46 2001 +0000
+++ b/sys/arch/sparc/include/param.h    Tue Dec 11 03:28:38 2001 +0000
@@ -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 @@
 #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.



Home | Main Index | Thread Index | Old Index