Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/newsmips/dev Call zshard() twice in zshard_hb() int...



details:   https://anonhg.NetBSD.org/src/rev/d4a8135a4888
branches:  trunk
changeset: 546962:d4a8135a4888
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 10 03:27:33 2003 +0000

description:
Call zshard() twice in zshard_hb() interrupt handler for workaround
otherwise news3400 sometimes losts zs interrupts.

This should fix "serial console hiccups on sysinst" problem
reported by Mauricio <raub at kudria.com> on port-newsmips.

diffstat:

 sys/arch/newsmips/dev/zs_hb.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r bd1259f4f579 -r d4a8135a4888 sys/arch/newsmips/dev/zs_hb.c
--- a/sys/arch/newsmips/dev/zs_hb.c     Sat May 10 02:09:39 2003 +0000
+++ b/sys/arch/newsmips/dev/zs_hb.c     Sat May 10 03:27:33 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs_hb.c,v 1.13 2003/05/09 17:39:12 tsutsui Exp $       */
+/*     $NetBSD: zs_hb.c,v 1.14 2003/05/10 03:27:33 tsutsui Exp $       */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -317,9 +317,16 @@
 zshard_hb(arg)
        void *arg;
 {
+       int rv;
+
        (void) *(volatile u_char *)SCCVECT;
+       rv = zshard(arg);
 
-       return zshard(arg);
+       /* XXX news3400 sometimes losts zs interrupt */
+       if (rv)
+               zshard(arg);
+
+       return rv;
 }
 
 /*



Home | Main Index | Thread Index | Old Index