Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/hp300 Move intr_init() call from early hp300_...



details:   https://anonhg.NetBSD.org/src/rev/01e5aa53ae03
branches:  trunk
changeset: 764882:01e5aa53ae03
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue May 10 14:38:08 2011 +0000

description:
Move intr_init() call from early hp300_init() to cpu_configure(9)
since interrupt functions would want evcnt(9).

diffstat:

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

diffs (56 lines):

diff -r 2490edec2810 -r 01e5aa53ae03 sys/arch/hp300/hp300/autoconf.c
--- a/sys/arch/hp300/hp300/autoconf.c   Tue May 10 13:03:05 2011 +0000
+++ b/sys/arch/hp300/hp300/autoconf.c   Tue May 10 14:38:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.97 2011/02/12 05:08:40 tsutsui Exp $    */
+/*     $NetBSD: autoconf.c,v 1.98 2011/05/10 14:38:08 tsutsui Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 2002 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.97 2011/02/12 05:08:40 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.98 2011/05/10 14:38:08 tsutsui Exp $");
 
 #include "dvbox.h"
 #include "gbox.h"
@@ -282,6 +282,9 @@
        /* Kick off autoconfiguration. */
        (void)splhigh();
 
+       /* Initialize the interrupt handlers. */
+       intr_init();
+
        if (config_rootfound("mainbus", NULL) == NULL)
                panic("no mainbus found");
 
diff -r 2490edec2810 -r 01e5aa53ae03 sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c    Tue May 10 13:03:05 2011 +0000
+++ b/sys/arch/hp300/hp300/machdep.c    Tue May 10 14:38:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.219 2011/03/04 22:25:25 joerg Exp $      */
+/*     $NetBSD: machdep.c,v 1.220 2011/05/10 14:38: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.219 2011/03/04 22:25:25 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.220 2011/05/10 14:38:08 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -203,9 +203,6 @@
        uvm_page_physload(atop(avail_start), atop(avail_end),
            atop(avail_start), atop(avail_end), VM_FREELIST_DEFAULT);
 
-       /* Initialize the interrupt handlers. */
-       intr_init();
-
        /* Calibrate the delay loop. */
        hp300_calibrate_delay();
 



Home | Main Index | Thread Index | Old Index