Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/newsmips/dev Pull up revision 1.14 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/04abe660a50d
branches:  netbsd-1-6
changeset: 530444:04abe660a50d
user:      grant <grant%NetBSD.org@localhost>
date:      Tue Jun 24 10:01:10 2003 +0000

description:
Pull up revision 1.14 (requested by tsutsui in ticket #1286):

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 79299984d6b1 -r 04abe660a50d sys/arch/newsmips/dev/zs_hb.c
--- a/sys/arch/newsmips/dev/zs_hb.c     Tue Jun 24 09:56:04 2003 +0000
+++ b/sys/arch/newsmips/dev/zs_hb.c     Tue Jun 24 10:01:10 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs_hb.c,v 1.4 2000/03/06 21:36:10 thorpej Exp $        */
+/*     $NetBSD: zs_hb.c,v 1.4.24.1 2003/06/24 10:01:10 grant Exp $     */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -322,9 +322,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