Module Name:    src
Committed By:   tsutsui
Date:           Wed Apr  6 15:31:08 UTC 2011

Modified Files:
        src/sys/arch/pmax/pmax: machdep.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.242 -r1.243 src/sys/arch/pmax/pmax/machdep.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/machdep.c
diff -u src/sys/arch/pmax/pmax/machdep.c:1.242 src/sys/arch/pmax/pmax/machdep.c:1.243
--- src/sys/arch/pmax/pmax/machdep.c:1.242	Sun Feb 20 07:50:25 2011
+++ src/sys/arch/pmax/pmax/machdep.c	Wed Apr  6 15:31:08 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.242 2011/02/20 07:50:25 matt Exp $	*/
+/*	$NetBSD: machdep.c,v 1.243 2011/04/06 15:31:08 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.242 2011/02/20 07:50:25 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.243 2011/04/06 15:31:08 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_modular.h"
@@ -315,9 +315,6 @@
 	/* Machine specific initialization. */
 	(*sysinit[systype].init)();
 
-	/* Interrupt initialization. */
-	intr_init();
-
 	/* Find out how much memory is available. */
 	physmem = (*platform.memsize)(kernend);
 

Reply via email to