Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Cosmetics - block interrupts while enabling diffe...
details: https://anonhg.NetBSD.org/src/rev/31ad4a7a2ace
branches: trunk
changeset: 333152:31ad4a7a2ace
user: martin <martin%NetBSD.org@localhost>
date: Mon Oct 20 20:08:01 2014 +0000
description:
Cosmetics - block interrupts while enabling different interrupt sources.
diffstat:
sys/dev/ic/dwc_gmac.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 0ee382e947a8 -r 31ad4a7a2ace sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c Mon Oct 20 20:02:16 2014 +0000
+++ b/sys/dev/ic/dwc_gmac.c Mon Oct 20 20:08:01 2014 +0000
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.16 2014/10/20 19:51:40 martin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.17 2014/10/20 20:08:01 martin Exp $");
/* #define DWC_GMAC_DEBUG 1 */
@@ -129,6 +129,7 @@
struct mii_data * const mii = &sc->sc_mii;
struct ifnet * const ifp = &sc->sc_ec.ec_if;
prop_dictionary_t dict;
+ int s;
mutex_init(&sc->sc_mdio_lock, MUTEX_DEFAULT, IPL_NET);
sc->sc_mii_clk = mii_clk & 7;
@@ -237,10 +238,12 @@
/*
* Enable interrupts
*/
+ s = splnet();
bus_space_write_4(sc->sc_bst, sc->sc_bsh, AWIN_GMAC_MAC_INTR,
AWIN_DEF_MAC_INTRMASK);
bus_space_write_4(sc->sc_bst, sc->sc_bsh, AWIN_GMAC_DMA_INTENABLE,
GMAC_DEF_DMA_INT_MASK);
+ splx(s);
return;
Home |
Main Index |
Thread Index |
Old Index