Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/mainbus Add code to point out to the user if th...



details:   https://anonhg.NetBSD.org/src/rev/dd0b761ec8ee
branches:  trunk
changeset: 506995:dd0b761ec8ee
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Mar 10 21:27:06 2001 +0000

description:
Add code to point out to the user if their CPU isn't supported, and to
suggest what kernel options to use to get it to work.

diffstat:

 sys/arch/arm/mainbus/cpu.c |  38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diffs (52 lines):

diff -r 2bd28c9e98cb -r dd0b761ec8ee sys/arch/arm/mainbus/cpu.c
--- a/sys/arch/arm/mainbus/cpu.c        Sat Mar 10 20:54:53 2001 +0000
+++ b/sys/arch/arm/mainbus/cpu.c        Sat Mar 10 21:27:06 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.13 2001/03/10 20:15:46 bjh21 Exp $   */
+/*     $NetBSD: cpu.c,v 1.14 2001/03/10 21:27:06 bjh21 Exp $   */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -402,6 +402,42 @@
        /* Print the info */
 
        printf(": %s\n", cpu->cpu_model);
+
+       switch (cpu->cpu_class) {
+#ifdef CPU_ARM2
+       case CPU_CLASS_ARM2:
+#endif
+#ifdef CPU_ARM250
+       case CPU_CLASS_ARM2AS:
+#endif
+#ifdef CPU_ARM3
+       case CPU_CLASS_ARM3:
+#endif
+#ifdef CPU_ARM6
+       case CPU_CLASS_ARM6:
+#endif
+#ifdef CPU_ARM7
+       case CPU_CLASS_ARM7:
+#endif
+#ifdef CPU_ARM8
+       case CPU_CLASS_ARM8:
+#endif
+#ifdef CPU_SA110
+       case CPU_CLASS_SA1:
+#endif
+               break;
+       default:
+               if (cpu_classes[cpu->cpu_class].class_option != NULL)
+                       printf("WARNING: %s does not fully support this CPU."
+                              "\n", ostype);
+               else
+                       printf("WARNING: This kernel does not fully support "
+                              "this CPU.\nRecompile with \"options %s\" to "
+                              "correct this.\n",
+                              cpu_classes[cpu->cpu_class].class_option);
+               break;
+       }
+                              
 }
 
 



Home | Main Index | Thread Index | Old Index