cannot make a variable volatile - it should be declared as such.
* netboot/sis900.c: Likewise.
+2006-09-10 Pavel Roskin <proski@gnu.org>
+
+ * netboot/natsemi.c: Fix compile error with gcc 4.1.1. Cast
+ cannot make a variable volatile - it should be declared as such.
+ * netboot/sis900.c: Likewise.
+
2006-09-08 Pavel Roskin <proski@gnu.org>
* netboot/etherboot.h: Remove incorrect extern declarations of
const char *p) /* Packet */
{
u32 status, to, nstype;
- u32 tx_status;
+ volatile u32 tx_status;
/* Stop the transmitter */
outl(TxOff, ioaddr + ChipCmd);
to = currticks() + TX_TIMEOUT;
- while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+ while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
/* wait */ ;
if (currticks() >= to) {
const char *p) /* Packet */
{
u32 status, to, nstype;
- u32 tx_status;
+ volatile u32 tx_status;
/* Stop the transmitter */
outl(TxDIS, ioaddr + cr);
to = currticks() + TX_TIMEOUT;
- while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+ while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
/* wait */ ;
if (currticks() >= to) {