2005-03-14 Joel Sherrill <joel@OARcorp.com>

* include/.cvsignore: Fixed typo.
	* network/network.c: Now compiles with GCC 4.0.
This commit is contained in:
Joel Sherrill
2005-03-14 23:41:57 +00:00
parent 4b9d865afe
commit 650a6e7f20
3 changed files with 12 additions and 4 deletions
+5
View File
@@ -1,3 +1,8 @@
2005-03-14 Joel Sherrill <joel@OARcorp.com>
* include/.cvsignore: Fixed typo.
* network/network.c: Now compiles with GCC 4.0.
2005-03-04 Joel Sherrill <joel@OARcorp.com>
* .cvsignore, ChangeLog, include/.cvsignore: New files.
@@ -1 +1 @@
include/bspopts.h.in
bspopts.h.in
@@ -458,7 +458,8 @@ void au1x00_emac_init_hw(au1x00_emac_softc_t *sc)
* boundary.
*/
if (mtod(m, unsigned32) & 0x1f) {
mtod(m, unsigned32) = (mtod(m, unsigned32) + 0x1f) & 0x1f;
unsigned32 *p = &mtod(m, unsigned32);
*p = (mtod(m, unsigned32) + 0x1f) & 0x1f;
}
sc->rx_dma[i].addr = (mtod(m, unsigned32) & ~0xe0000000);
sc->rx_mbuf[i] = m;
@@ -652,7 +653,9 @@ void au1x00_emac_rx_daemon (void *arg)
* The receive buffer must be aligned with a cache line
* boundary.
*/
mtod(m, unsigned32) = (mtod(m, unsigned32) + 0x1f) & ~0x1f;
{ unsigned32 *p = &mtod(m, unsigned32);
*p = (mtod(m, unsigned32) + 0x1f) & ~0x1f;
}
} else {
sc->rx_dropped++;
@@ -824,7 +827,7 @@ au1x00_emac_ioctl (struct ifnet *ifp, int command, caddr_t data)
/* interrupt handler */
rtems_isr au1x00_emac_isr (rtems_vector_number v)
{
au1x00_emac_softc_t *sc;
volatile au1x00_emac_softc_t *sc;
int index;
int tx_flag = 0;
int rx_flag = 0;