Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/pmax/pmax Check KN03_INTR_PROD_JUMPER in the IOASIC...
details: https://anonhg.NetBSD.org/src/rev/c33281f4c2a1
branches: trunk
changeset: 467459:c33281f4c2a1
user: simonb <simonb%NetBSD.org@localhost>
date: Thu Mar 25 03:03:59 1999 +0000
description:
Check KN03_INTR_PROD_JUMPER in the IOASIC INTR register to test if we
are running on a 5000/2x0 or a 5900, and set cpu_model accordingly.
(Test from Tohru Nishimura).
diffstat:
sys/arch/pmax/pmax/dec_3maxplus.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r bbb44505f088 -r c33281f4c2a1 sys/arch/pmax/pmax/dec_3maxplus.c
--- a/sys/arch/pmax/pmax/dec_3maxplus.c Thu Mar 25 03:00:18 1999 +0000
+++ b/sys/arch/pmax/pmax/dec_3maxplus.c Thu Mar 25 03:03:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3maxplus.c,v 1.12 1999/03/25 01:17:52 simonb Exp $ */
+/* $NetBSD: dec_3maxplus.c,v 1.13 1999/03/25 03:03:59 simonb Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@@ -73,7 +73,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.12 1999/03/25 01:17:52 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.13 1999/03/25 03:03:59 simonb Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -135,6 +135,9 @@
void
dec_3maxplus_init()
{
+ volatile u_int *intrp =
+ (volatile u_int *) MIPS_PHYS_TO_KSEG1(KN03_REG_INTR);
+ register u_int intr;
platform.iobus = "tcioasic";
@@ -145,8 +148,13 @@
dec_3maxplus_os_init();
- sprintf(cpu_model, "DECstation 5000/2%c0 (3MAXPLUS)",
- CPUISMIPS3 ? '6' : '4');
+ intr = *intrp;
+ if (intr & KN03_INTR_PROD_JUMPER)
+ sprintf(cpu_model, "DECstation 5000/2%c0 (3MAXPLUS)",
+ CPUISMIPS3 ? '6' : '4');
+ else
+ sprintf(cpu_model, "DECsystem 5900%s (3MAXPLUS)",
+ CPUISMIPS3 ? "-260" : "");
}
Home |
Main Index |
Thread Index |
Old Index