Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev After finishing with the received descri...



details:   https://anonhg.NetBSD.org/src/rev/bb24f582ae3a
branches:  trunk
changeset: 508794:bb24f582ae3a
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Apr 20 01:18:47 2001 +0000

description:
After finishing with the received descriptor, make sure to "eieio" to make
sure the OWN gets back to the gmac in the proper order.  This reduces (and
maybe even fixes) the gm0 out-of-order problem.

diffstat:

 sys/arch/macppc/dev/if_gm.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r b39a57116201 -r bb24f582ae3a sys/arch/macppc/dev/if_gm.c
--- a/sys/arch/macppc/dev/if_gm.c       Fri Apr 20 00:10:17 2001 +0000
+++ b/sys/arch/macppc/dev/if_gm.c       Fri Apr 20 01:18:47 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_gm.c,v 1.10 2000/12/28 22:59:09 sommerfeld Exp $    */
+/*     $NetBSD: if_gm.c,v 1.11 2001/04/20 01:18:47 matt Exp $  */
 
 /*-
  * Copyright (c) 2000 Tsubai Masanari.  All rights reserved.
@@ -398,6 +398,7 @@
                dp->cmd_hi = 0;
                __asm __volatile ("sync");
                dp->cmd = htole32(GMAC_OWN);
+               __asm __volatile ("eieio");     /* force out the OWN bit */
        }
        sc->sc_rxlast = i;
 }



Home | Main Index | Thread Index | Old Index