Module Name: src Committed By: tsutsui Date: Wed Apr 6 15:31:48 UTC 2011
Modified Files: src/sys/arch/pmax/pmax: autoconf.c Log Message: Move intr_init() (which initializes evcnt(9) for interrupts) from early machdep.c:mach_init() to autoconf.c:cpu_configure(). evcnt_init() isn't called yet when mach_init() is invoked from locore.S and interrupts won't be enabled before cpu_configure(9). Problem reported by Erik Bertelsen on port-pmax: http://mail-index.NetBSD.org/port-pmax/2011/04/06/msg000093.html To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77 src/sys/arch/pmax/pmax/autoconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/pmax/pmax/autoconf.c diff -u src/sys/arch/pmax/pmax/autoconf.c:1.76 src/sys/arch/pmax/pmax/autoconf.c:1.77 --- src/sys/arch/pmax/pmax/autoconf.c:1.76 Sun Feb 20 07:50:25 2011 +++ src/sys/arch/pmax/pmax/autoconf.c Wed Apr 6 15:31:48 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.76 2011/02/20 07:50:25 matt Exp $ */ +/* $NetBSD: autoconf.c,v 1.77 2011/04/06 15:31:48 tsutsui Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.76 2011/02/20 07:50:25 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.77 2011/04/06 15:31:48 tsutsui Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -77,6 +77,9 @@ /* Kick off autoconfiguration. */ (void)splhigh(); + /* Interrupt initialization. */ + intr_init(); + if (config_rootfound("mainbus", NULL) == NULL) panic("no mainbus found");