diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2010-02-25 11:01:35 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2010-02-25 11:01:35 +0000 |
commit | 28b38f3c3073a2edf7daa7140c5db204fa3645ff (patch) | |
tree | c822c83de31acb61999b0487d060eea557688da3 /c/src/lib/libbsp/m68k/genmcf548x/network | |
parent | Regenerate. (diff) | |
download | rtems-28b38f3c3073a2edf7daa7140c5db204fa3645ff.tar.bz2 |
combine all checks for missing MAC address
enable FPU, if POSIX init task present
explicitly disable all edge port interrupts
Diffstat (limited to 'c/src/lib/libbsp/m68k/genmcf548x/network')
-rw-r--r-- | c/src/lib/libbsp/m68k/genmcf548x/network/network.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/c/src/lib/libbsp/m68k/genmcf548x/network/network.c b/c/src/lib/libbsp/m68k/genmcf548x/network/network.c index 797f3f9117..a94ba360ca 100644 --- a/c/src/lib/libbsp/m68k/genmcf548x/network/network.c +++ b/c/src/lib/libbsp/m68k/genmcf548x/network/network.c @@ -1721,13 +1721,6 @@ int rtems_mcf548x_fec_driver_attach(struct rtems_bsdnet_ifconfig *config) /* There is no entry in NVRAM, but there is in the ifconfig struct, so use it. */ memcpy((void *)sc->arpcom.ac_enaddr, config->hardware_address, ETHER_ADDR_LEN); } - else - { - /* There is no ethernet address provided, so it could be read - * from the Ethernet protocol block of SCC1 in DPRAM. - */ - rtems_panic("No Ethernet address specified!\n"); - } #else /* NVRAM_CONFIGURE != 1 */ @@ -1737,15 +1730,6 @@ int rtems_mcf548x_fec_driver_attach(struct rtems_bsdnet_ifconfig *config) memcpy(sc->arpcom.ac_enaddr, config->hardware_address, ETHER_ADDR_LEN); } - else - { - - /* There is no ethernet address provided, so it could be read - * from the Ethernet protocol block of SCC1 in DPRAM. - */ - rtems_panic("No Ethernet address specified!\n"); - - } #endif /* NVRAM_CONFIGURE != 1 */ #ifdef HAS_UBOOT @@ -1770,6 +1754,14 @@ int rtems_mcf548x_fec_driver_attach(struct rtems_bsdnet_ifconfig *config) ); } #endif + if ((sc->arpcom.ac_enaddr[0] == 0) && + (sc->arpcom.ac_enaddr[1] == 0) && + (sc->arpcom.ac_enaddr[2] == 0)) { + /* There is no ethernet address provided, so it could be read + * from the Ethernet protocol block of SCC1 in DPRAM. + */ + rtems_panic("No Ethernet address specified!\n"); + } if(config->mtu) mtu = config->mtu; else |