diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-26 17:02:41 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-26 17:02:41 +0000 |
commit | 9d95aa779435c2d53dd82d80f4d001cc35845543 (patch) | |
tree | a7eb70f4ec5cacf0e0f5076c3347f18b3dad29e2 /sys/arch/sgi/dev | |
parent | b70ce41c22de7e2281a07553ebb61643145ed28a (diff) |
Do not invoke arcbios routines from the moment our page tables are set up,
to the moment we reboot, for we do not know what it can do behind our back;
this means the built-in ethernet address has to be read from the arcbios
environment earlier.
Diffstat (limited to 'sys/arch/sgi/dev')
-rw-r--r-- | sys/arch/sgi/dev/if_mec.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/sgi/dev/if_mec.c b/sys/arch/sgi/dev/if_mec.c index 600a413ade3..a1b949f07e1 100644 --- a/sys/arch/sgi/dev/if_mec.c +++ b/sys/arch/sgi/dev/if_mec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mec.c,v 1.10 2006/03/25 22:41:41 djm Exp $ */ +/* $OpenBSD: if_mec.c,v 1.11 2007/04/26 17:02:40 miod Exp $ */ /* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */ /* @@ -363,7 +363,6 @@ mec_attach(struct device *parent, struct device *self, void *aux) struct confargs *ca = aux; struct ifnet *ifp = &sc->sc_ac.ac_if; uint32_t command; - char *macaddr; struct mii_softc *child; bus_dma_segment_t seg; int i, err, rseg; @@ -433,12 +432,8 @@ mec_attach(struct device *parent, struct device *self, void *aux) timeout_set(&sc->sc_tick_ch, mec_tick, sc); - /* get ethernet address from ARCBIOS */ - if ((macaddr = Bios_GetEnvironmentVariable("eaddr")) == NULL) { - printf(": unable to get MAC address!\n"); - goto fail_4; - } - enaddr_aton(macaddr, sc->sc_ac.ac_enaddr); + /* use ethernet address from ARCBIOS */ + enaddr_aton(bios_enaddr, sc->sc_ac.ac_enaddr); /* reset device */ mec_reset(sc); |