Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax Detect 4000/500A, 4000/600A and 4000/705A. ...



details:   https://anonhg.NetBSD.org/src/rev/0fa1e9c6aff0
branches:  trunk
changeset: 509311:0fa1e9c6aff0
user:      ragge <ragge%NetBSD.org@localhost>
date:      Tue May 01 11:13:46 2001 +0000

description:
Detect 4000/500A, 4000/600A and 4000/705A. Also detect MicroVAX 1.

diffstat:

 sys/arch/vax/vax/locore.c |  20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 56769a732816 -r 0fa1e9c6aff0 sys/arch/vax/vax/locore.c
--- a/sys/arch/vax/vax/locore.c Tue May 01 11:11:47 2001 +0000
+++ b/sys/arch/vax/vax/locore.c Tue May 01 11:13:46 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.c,v 1.57 2001/04/24 20:16:37 ragge Exp $        */
+/*     $NetBSD: locore.c,v 1.58 2001/05/01 11:13:46 ragge Exp $        */
 /*
  * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -76,6 +76,7 @@
 extern struct cpu_dep ka49_calls;
 extern struct cpu_dep ka53_calls;
 extern struct cpu_dep ka410_calls;
+extern struct cpu_dep ka610_calls;
 extern struct cpu_dep ka630_calls;
 extern struct cpu_dep ka650_calls;
 extern struct cpu_dep ka660_calls;
@@ -186,6 +187,12 @@
                }
                break;
 #endif
+#if VAX610
+       case VAX_BTYP_610:
+               dep_call = &ka610_calls;
+               strcpy(cpu_model,"MicroVAX I");
+               break;
+#endif
 #if VAX630
        case VAX_BTYP_630:
                dep_call = &ka630_calls;
@@ -241,7 +248,16 @@
                break;
        case VAX_BTYP_681:
                dep_call = &ka680_calls;
-               strcpy(cpu_model,"VAX 4000/500A"); break;
+               switch((vax_siedata & 0xff00) >> 8) {
+               case VAX_STYP_681:
+                       strcpy(cpu_model,"VAX 4000/500A"); break;
+               case VAX_STYP_691:
+                       strcpy(cpu_model,"VAX 4000/600A"); break;
+               case VAX_STYP_694:
+                       strcpy(cpu_model,"VAX 4000/705A"); break;
+               default:
+                       strcpy(cpu_model,"unknown 1305");
+               }
                break;
 #endif
 #if VAX8200



Home | Main Index | Thread Index | Old Index