david/ipxe
Archived
1
0

the uncontroversal gcc 4.0 compilation fixes

This commit is contained in:
George Baum 2005-05-23 19:30:37 +00:00
parent fd49648a35
commit c4c05bbbf7
2 changed files with 4 additions and 4 deletions

View File

@ -604,7 +604,7 @@ natsemi_transmit(struct nic *nic,
const char *p) /* Packet */
{
u32 to, nstype;
u32 tx_status;
volatile u32 tx_status;
/* Stop the transmitter */
outl(TxOff, ioaddr + ChipCmd);
@ -643,7 +643,7 @@ natsemi_transmit(struct nic *nic,
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) {

View File

@ -1097,7 +1097,7 @@ sis900_transmit(struct nic *nic,
const char *p) /* Packet */
{
u32 to, nstype;
u32 tx_status;
volatile u32 tx_status;
/* Stop the transmitter */
outl(TxDIS | inl(ioaddr + cr), ioaddr + cr);
@ -1136,7 +1136,7 @@ sis900_transmit(struct nic *nic,
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) {