Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/prep/prep Fix initialization order so we can boot a...



details:   https://anonhg.NetBSD.org/src/rev/0a713aae6b86
branches:  trunk
changeset: 835529:0a713aae6b86
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Aug 27 17:17:25 2018 +0000

description:
Fix initialization order so we can boot again on IBM PPS Model 6015
(which needs pci interrupt fixup quirks).
>From Artyom Tarasenko.

diffstat:

 sys/arch/prep/prep/machdep.c |  10 ++--------
 sys/arch/prep/prep/mainbus.c |   7 +++++--
 2 files changed, 7 insertions(+), 10 deletions(-)

diffs (59 lines):

diff -r 8cd6ca2e0307 -r 0a713aae6b86 sys/arch/prep/prep/machdep.c
--- a/sys/arch/prep/prep/machdep.c      Mon Aug 27 17:13:07 2018 +0000
+++ b/sys/arch/prep/prep/machdep.c      Mon Aug 27 17:17:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.75 2014/04/03 23:49:47 mrg Exp $ */
+/*     $NetBSD: machdep.c,v 1.76 2018/08/27 17:17:25 martin Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.75 2014/04/03 23:49:47 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.76 2018/08/27 17:17:25 martin Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_openpic.h"
@@ -207,12 +207,6 @@
         * Now safe for bus space allocation to use malloc.
         */
        bus_space_mallocok();
-
-       /*
-        * Gather the pci interrupt routings.
-         */
-       setup_pciroutinginfo();
-
 }
 
 /*
diff -r 8cd6ca2e0307 -r 0a713aae6b86 sys/arch/prep/prep/mainbus.c
--- a/sys/arch/prep/prep/mainbus.c      Mon Aug 27 17:13:07 2018 +0000
+++ b/sys/arch/prep/prep/mainbus.c      Mon Aug 27 17:17:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.33 2012/01/27 18:53:00 para Exp $        */
+/*     $NetBSD: mainbus.c,v 1.34 2018/08/27 17:17:25 martin Exp $      */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.33 2012/01/27 18:53:00 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.34 2018/08/27 17:17:25 martin Exp $");
 
 #include "opt_pci.h"
 #include "opt_residual.h"
@@ -140,6 +140,9 @@
        SIMPLEQ_INIT(&genppc_pct->pc_pbi);
        SIMPLEQ_INSERT_TAIL(&genppc_pct->pc_pbi, pbi, next);
 
+       /* fix pci interrupt routings on some models */
+       setup_pciroutinginfo();
+
        /* find the primary host bridge */
        setup_pciintr_map(pbi, 0, 0, 0);
 



Home | Main Index | Thread Index | Old Index