Browse Source

the uncontroversal gcc 4.0 compilation fixes

tags/v0.9.3
George Baum 19 years ago
parent
commit
c4c05bbbf7
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      src/drivers/net/natsemi.c
  2. 2
    2
      src/drivers/net/sis900.c

+ 2
- 2
src/drivers/net/natsemi.c View File

604
 		 const char  *p)     /* Packet */
604
 		 const char  *p)     /* Packet */
605
 {
605
 {
606
     u32 to, nstype;
606
     u32 to, nstype;
607
-    u32 tx_status;
607
+    volatile u32 tx_status;
608
     
608
     
609
     /* Stop the transmitter */
609
     /* Stop the transmitter */
610
     outl(TxOff, ioaddr + ChipCmd);
610
     outl(TxOff, ioaddr + ChipCmd);
643
 
643
 
644
     to = currticks() + TX_TIMEOUT;
644
     to = currticks() + TX_TIMEOUT;
645
 
645
 
646
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
646
+    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
647
         /* wait */ ;
647
         /* wait */ ;
648
 
648
 
649
     if (currticks() >= to) {
649
     if (currticks() >= to) {

+ 2
- 2
src/drivers/net/sis900.c View File

1097
                 const char  *p)     /* Packet */
1097
                 const char  *p)     /* Packet */
1098
 {
1098
 {
1099
     u32 to, nstype;
1099
     u32 to, nstype;
1100
-    u32 tx_status;
1100
+    volatile u32 tx_status;
1101
     
1101
     
1102
     /* Stop the transmitter */
1102
     /* Stop the transmitter */
1103
     outl(TxDIS | inl(ioaddr + cr), ioaddr + cr);
1103
     outl(TxDIS | inl(ioaddr + cr), ioaddr + cr);
1136
 
1136
 
1137
     to = currticks() + TX_TIMEOUT;
1137
     to = currticks() + TX_TIMEOUT;
1138
 
1138
 
1139
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
1139
+    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
1140
         /* wait */ ;
1140
         /* wait */ ;
1141
 
1141
 
1142
     if (currticks() >= to) {
1142
     if (currticks() >= to) {

Loading…
Cancel
Save