Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc Fix hangs-up. Remove "wrteei 1" in board's ...



details:   https://anonhg.NetBSD.org/src/rev/e06b309d3896
branches:  trunk
changeset: 771975:e06b309d3896
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Mon Dec 12 11:23:57 2011 +0000

description:
Fix hangs-up.  Remove "wrteei 1" in board's cpu_configure().  Interrupt
is enabled in powerpc-layer.

diffstat:

 sys/arch/evbppc/explora/autoconf.c       |  9 ++-------
 sys/arch/evbppc/obs405/obs200_autoconf.c |  9 ++-------
 sys/arch/evbppc/obs405/obs266_autoconf.c |  9 ++-------
 sys/arch/evbppc/obs405/obs600_autoconf.c |  9 ++-------
 sys/arch/evbppc/virtex/autoconf.c        |  7 ++-----
 sys/arch/evbppc/walnut/autoconf.c        |  9 ++-------
 6 files changed, 12 insertions(+), 40 deletions(-)

diffs (178 lines):

diff -r 8cc542ff3ebb -r e06b309d3896 sys/arch/evbppc/explora/autoconf.c
--- a/sys/arch/evbppc/explora/autoconf.c        Mon Dec 12 10:56:46 2011 +0000
+++ b/sys/arch/evbppc/explora/autoconf.c        Mon Dec 12 11:23:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.11 2011/06/18 06:44:25 matt Exp $       */
+/*     $NetBSD: autoconf.c,v 1.12 2011/12/12 11:23:57 kiyohara Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.11 2011/06/18 06:44:25 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.12 2011/12/12 11:23:57 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -52,11 +52,6 @@
            imask[IPL_BIO], imask[IPL_NET], imask[IPL_TTY]);
        
        (void)spl0();
-
-       /*
-        * Now allow hardware interrupts.
-        */
-       __asm volatile ("wrteei 1");
 }
 
 void
diff -r 8cc542ff3ebb -r e06b309d3896 sys/arch/evbppc/obs405/obs200_autoconf.c
--- a/sys/arch/evbppc/obs405/obs200_autoconf.c  Mon Dec 12 10:56:46 2011 +0000
+++ b/sys/arch/evbppc/obs405/obs200_autoconf.c  Mon Dec 12 11:23:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obs200_autoconf.c,v 1.6 2011/06/18 06:44:26 matt Exp $ */
+/*     $NetBSD: obs200_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $     */
 
 /*
  * Copyright 2004 Shigeyuki Fukushima.
@@ -33,7 +33,7 @@
  * DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obs200_autoconf.c,v 1.6 2011/06/18 06:44:26 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obs200_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $");
 
 #include <sys/systm.h>
 #include <sys/device.h>
@@ -67,11 +67,6 @@
            imask[IPL_BIO], imask[IPL_NET], imask[IPL_TTY]);
 
        (void)spl0();
-
-       /*
-        * Now allow hardware interrupts.
-        */
-       __asm volatile ("wrteei 1");
 }
 
 void device_register(device_t dev, void *aux)
diff -r 8cc542ff3ebb -r e06b309d3896 sys/arch/evbppc/obs405/obs266_autoconf.c
--- a/sys/arch/evbppc/obs405/obs266_autoconf.c  Mon Dec 12 10:56:46 2011 +0000
+++ b/sys/arch/evbppc/obs405/obs266_autoconf.c  Mon Dec 12 11:23:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obs266_autoconf.c,v 1.6 2011/06/18 06:44:26 matt Exp $ */
+/*     $NetBSD: obs266_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $     */
 
 /*
  * Copyright 2004 Shigeyuki Fukushima.
@@ -33,7 +33,7 @@
  * DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obs266_autoconf.c,v 1.6 2011/06/18 06:44:26 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obs266_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $");
 
 #include <sys/systm.h>
 #include <sys/device.h>
@@ -63,11 +63,6 @@
                panic("configure: mainbus not configured");
 
        (void)spl0();
-
-       /*
-        * Now allow hardware interrupts.
-        */
-       __asm volatile ("wrteei 1");
 }
 
 void
diff -r 8cc542ff3ebb -r e06b309d3896 sys/arch/evbppc/obs405/obs600_autoconf.c
--- a/sys/arch/evbppc/obs405/obs600_autoconf.c  Mon Dec 12 10:56:46 2011 +0000
+++ b/sys/arch/evbppc/obs405/obs600_autoconf.c  Mon Dec 12 11:23:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obs600_autoconf.c,v 1.4 2011/06/20 17:44:33 matt Exp $ */
+/*     $NetBSD: obs600_autoconf.c,v 1.5 2011/12/12 11:23:57 kiyohara Exp $     */
 
 /*
  * Copyright 2004 Shigeyuki Fukushima.
@@ -33,7 +33,7 @@
  * DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obs600_autoconf.c,v 1.4 2011/06/20 17:44:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obs600_autoconf.c,v 1.5 2011/12/12 11:23:57 kiyohara Exp $");
 
 #include <sys/systm.h>
 #include <sys/device.h>
@@ -72,11 +72,6 @@
            imask[IPL_BIO], imask[IPL_NET], imask[IPL_TTY]);
 
        (void)spl0();
-
-       /*
-        * Now allow hardware interrupts.
-        */
-       __asm volatile ("wrteei 1");
 }
 
 void
diff -r 8cc542ff3ebb -r e06b309d3896 sys/arch/evbppc/virtex/autoconf.c
--- a/sys/arch/evbppc/virtex/autoconf.c Mon Dec 12 10:56:46 2011 +0000
+++ b/sys/arch/evbppc/virtex/autoconf.c Mon Dec 12 11:23:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.3 2011/06/18 06:44:27 matt Exp $ */
+/*     $NetBSD: autoconf.c,v 1.4 2011/12/12 11:23:57 kiyohara Exp $ */
 
 /*
  * Copyright (c) 2006 Jachym Holecek
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.3 2011/06/18 06:44:27 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.4 2011/12/12 11:23:57 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -94,9 +94,6 @@
                panic("configure: plb not configured");
 
        (void)spl0();
-
-       /* Now allow hardware interrupts. */
-       __asm volatile ("isync ; wrteei 1");
 }
 
 /*
diff -r 8cc542ff3ebb -r e06b309d3896 sys/arch/evbppc/walnut/autoconf.c
--- a/sys/arch/evbppc/walnut/autoconf.c Mon Dec 12 10:56:46 2011 +0000
+++ b/sys/arch/evbppc/walnut/autoconf.c Mon Dec 12 11:23:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.19 2011/06/18 06:44:28 matt Exp $       */
+/*     $NetBSD: autoconf.c,v 1.20 2011/12/12 11:23:57 kiyohara Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.19 2011/06/18 06:44:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.20 2011/12/12 11:23:57 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -72,11 +72,6 @@
                panic("configure: plb not configured");
 
        (void)spl0();
-
-       /*
-        * Now allow hardware interrupts.
-        */
-       __asm volatile ("wrteei 1");
 }
 
 /*



Home | Main Index | Thread Index | Old Index