Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/next68k/next68k Move isrinit() call from early next...



details:   https://anonhg.NetBSD.org/src/rev/215deebe8a14
branches:  trunk
changeset: 764884:215deebe8a14
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue May 10 14:45:28 2011 +0000

description:
Move isrinit() call from early next68k_init() to cpu_configure(9)
since interrupt service routines would want evcnt(9).

diffstat:

 sys/arch/next68k/next68k/autoconf.c |  7 +++++--
 sys/arch/next68k/next68k/machdep.c  |  7 ++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r a1eeb6e5cf82 -r 215deebe8a14 sys/arch/next68k/next68k/autoconf.c
--- a/sys/arch/next68k/next68k/autoconf.c       Tue May 10 14:41:55 2011 +0000
+++ b/sys/arch/next68k/next68k/autoconf.c       Tue May 10 14:45:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.24 2011/02/08 20:20:21 rmind Exp $      */
+/*     $NetBSD: autoconf.c,v 1.25 2011/05/10 14:45:28 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.24 2011/02/08 20:20:21 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.25 2011/05/10 14:45:28 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -96,6 +96,9 @@
 
        booted_device = NULL;   /* set by device drivers (if found) */
 
+       /* Initialize the interrupt handlers. */
+       isrinit();
+
 #if 0
        dma_rev = ((volatile u_char *)IIOV(NEXT_P_SCR1))[1];
        switch (dma_rev) {
diff -r a1eeb6e5cf82 -r 215deebe8a14 sys/arch/next68k/next68k/machdep.c
--- a/sys/arch/next68k/next68k/machdep.c        Tue May 10 14:41:55 2011 +0000
+++ b/sys/arch/next68k/next68k/machdep.c        Tue May 10 14:45:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.102 2011/03/05 19:04:58 joerg Exp $      */
+/*     $NetBSD: machdep.c,v 1.103 2011/05/10 14:45:28 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1998 Darrin B. Jewell
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.102 2011/03/05 19:04:58 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.103 2011/05/10 14:45:28 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -211,9 +211,6 @@
                }
        }
 
-       /* Initialize the interrupt handlers. */
-       isrinit();
-
        /* Calibrate the delay loop. */
        next68k_calibrate_delay();
 



Home | Main Index | Thread Index | Old Index