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 Move initialisation of ioasic_base to dec...



details:   https://anonhg.NetBSD.org/src/rev/f95dd772d66d
branches:  trunk
changeset: 473320:f95dd772d66d
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat May 29 07:10:36 1999 +0000

description:
Move initialisation of ioasic_base to dec_3maxplus_init() - it is used
in this function before dec_3maxplus_os_init() gets called.

diffstat:

 sys/arch/pmax/pmax/dec_3maxplus.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 118a877d14dd -r f95dd772d66d sys/arch/pmax/pmax/dec_3maxplus.c
--- a/sys/arch/pmax/pmax/dec_3maxplus.c Sat May 29 07:10:33 1999 +0000
+++ b/sys/arch/pmax/pmax/dec_3maxplus.c Sat May 29 07:10:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dec_3maxplus.c,v 1.20 1999/05/26 04:23:59 nisimura Exp $       */
+/*     $NetBSD: dec_3maxplus.c,v 1.21 1999/05/29 07:10:36 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.20 1999/05/26 04:23:59 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.21 1999/05/29 07:10:36 simonb Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -140,6 +140,9 @@
 {
        u_int32_t prodtype;
 
+       /* Initialise ioasic_base early on so we can determine product type */
+       ioasic_base = MIPS_PHYS_TO_KSEG1(KN03_SYS_ASIC);
+
        prodtype = *(u_int32_t *)(ioasic_base + IOASIC_INTR);
        prodtype &= KN03_INTR_PROD_JUMPER;
 
@@ -171,7 +174,7 @@
        *(u_int32_t *)MIPS_PHYS_TO_KSEG1(KN03_SYS_ERRADR) = 0;
        kn03_wbflush();
 
-       ioasic_base = MIPS_PHYS_TO_KSEG1(KN03_SYS_ASIC);
+       /* XXX: ioasic_base initialised in dec_3maxplus_init() */
        mips_hardware_intr = dec_3maxplus_intr;
        tc_enable_interrupt = dec_3maxplus_enable_intr; /* XXX */
        mcclock_addr = (void *)(ioasic_base + IOASIC_SLOT_8_START);



Home | Main Index | Thread Index | Old Index