diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-09 17:16:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-09 17:16:10 +0000 |
commit | 93180ea26a1c8a991602b7243e1e68e7f510e381 (patch) | |
tree | 45ffe3ae3ca4ed4bbad17b7700c3385b76d09f56 /c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c | |
parent | Patch from Jiri Gaisler <jgais@ws.estec.esa.nl>: (diff) | |
download | rtems-93180ea26a1c8a991602b7243e1e68e7f510e381.tar.bz2 |
Patch from Eric Valette <valette@crf.canon.fr>:
- The same bug fix that was done on pc386 to prevent interrupt
from occuring (never experienced it but who knows as I have 8259
emulation :()
- Removed every compiler warning (except wrong ones and ones I can't do
anything).
- Removed any libc available code in code linked with mcp750 rtems
executbale. Unfortunately using newlib functions for linking the
bootloader does not work as the compilation options in bootloader
(-mrelocatable -fixed-r13) are not compatible with newlib options.
=> I have put any libc external reference in one single new file (lib.c)
that is linked only with the boot loader. Removing the file from
${OBJ} and using -lc crash the bootloader. Added big warning...
Diffstat (limited to 'c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c b/c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c index b5a602645d..9f6252d78b 100644 --- a/c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c +++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/dec21140/dec21140.c @@ -346,7 +346,7 @@ static int eeget16(unsigned int *ioaddr, int location) st_le32(ioaddr, EE_ENB | dataval); /* Finish EEPROM a clock tick. */ for (i3=0; i3<1000; i3++) ; } - st_le32(*ioaddr, EE_ENB); + st_le32(ioaddr, EE_ENB); for (i = 16; i > 0; i--) { st_le32(ioaddr, EE_ENB | EE_SHIFT_CLK); @@ -357,7 +357,7 @@ static int eeget16(unsigned int *ioaddr, int location) } /* Terminate the EEPROM access. */ - st_le32(*ioaddr, EE_ENB & ~EE_CS); + st_le32(ioaddr, EE_ENB & ~EE_CS); return ( ((retval<<8)&0xff00) | ((retval>>8)&0xff) ); } @@ -410,7 +410,7 @@ dec21140Enet_initialize_hardware (struct dec21140_softc *sc) sc->arpcom.ac_enaddr[0], sc->arpcom.ac_enaddr[1], sc->arpcom.ac_enaddr[2], sc->arpcom.ac_enaddr[3], sc->arpcom.ac_enaddr[4], sc->arpcom.ac_enaddr[5], - sc->irqInfo.name, sc->port, sc->base); + sc->irqInfo.name, sc->port, (unsigned) sc->base); #endif /* @@ -791,9 +791,6 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config) unsigned char ucSlotNumber, ucFnNumber; unsigned int ulDeviceID, lvalue, tmp; unsigned char cvalue; - int value; - char interrupt; - int diag; /* * First, find a DEC board |