Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/include Forgot to commit this one that should...



details:   https://anonhg.NetBSD.org/src/rev/d2a869f90e50
branches:  trunk
changeset: 755889:d2a869f90e50
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jun 26 16:10:00 2010 +0000

description:
Forgot to commit this one that should have been done with zs.c rev 1.119:
> Establish interrupt handlers with proper softc per each zs device
> rather than sharing them among all zs devices and searching softc
> in handlers.
>
> The latter method is derived from ancient sun3 zs driver which tried
> to reduce overhead on autovectored interrupts, but nowadays such hack
> might cause recursive global locks on modern SMP capable framework.
>
> Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
> on tech-kern@:
> http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
> and also tested by Jochen Kunz on SS20 with both serial and kbd console.
>
> Ok'ed by mrg@ and dyoung@.

Noticed by martin@.

diffstat:

 sys/arch/sparc/include/z8530var.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r e6b25222ed89 -r d2a869f90e50 sys/arch/sparc/include/z8530var.h
--- a/sys/arch/sparc/include/z8530var.h Sat Jun 26 15:17:56 2010 +0000
+++ b/sys/arch/sparc/include/z8530var.h Sat Jun 26 16:10:00 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: z8530var.h,v 1.9 2008/03/29 19:15:35 tsutsui Exp $     */
+/*     $NetBSD: z8530var.h,v 1.10 2010/06/26 16:10:00 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -54,6 +54,7 @@
        int                     zsc_node;       /* PROM node, if any */
        struct evcnt            zsc_intrcnt;    /* count interrupts */
        struct zs_chanstate     zsc_cs_store[2];
+       void                    *zsc_sicookie;  /* softint(9) cookie */
 };
 
 /*



Home | Main Index | Thread Index | Old Index