Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm26/ioc Detect overruns before reading any data. ...



details:   https://anonhg.NetBSD.org/src/rev/1cc42f7ccb35
branches:  trunk
changeset: 517148:1cc42f7ccb35
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Wed Nov 07 19:52:59 2001 +0000

description:
Detect overruns before reading any data.  This makes overruns easier to
understand.

diffstat:

 sys/arch/arm26/ioc/if_eca_fiq.S |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b788cd17348a -r 1cc42f7ccb35 sys/arch/arm26/ioc/if_eca_fiq.S
--- a/sys/arch/arm26/ioc/if_eca_fiq.S   Wed Nov 07 19:45:48 2001 +0000
+++ b/sys/arch/arm26/ioc/if_eca_fiq.S   Wed Nov 07 19:52:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_eca_fiq.S,v 1.3 2001/09/22 17:19:27 bjh21 Exp $     */
+/*     $NetBSD: if_eca_fiq.S,v 1.4 2001/11/07 19:52:59 bjh21 Exp $     */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -29,7 +29,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: if_eca_fiq.S,v 1.3 2001/09/22 17:19:27 bjh21 Exp $")
+RCSID("$NetBSD: if_eca_fiq.S,v 1.4 2001/11/07 19:52:59 bjh21 Exp $")
 
 #include <dev/ic/mc6854reg.h>
 #include <arch/arm26/ioc/if_ecavar.h>
@@ -54,6 +54,8 @@
 ENTRY(eca_fiqhandler_rx)
        /* If there's something in the Rx FIFO, read it now. */
        ldrb    r12, [r8, #(MC6854_SR2 << 2)]
+       tst     r12, #MC6854_SR2_OVRN
+       bne     Leca_rx_nodata
        tst     r12, #MC6854_SR2_RDA
        beq     Leca_rx_nodata
 Leca_rx_loop:



Home | Main Index | Thread Index | Old Index