Make sis900 and gcc4.1 get along when using (volatile u32)
authorMarty Connor <mdc@etherboot.org>
Thu, 30 Aug 2007 12:53:49 +0000 (08:53 -0400)
committerMarty Connor <mdc@etherboot.org>
Thu, 30 Aug 2007 12:53:49 +0000 (08:53 -0400)
src/drivers/net/sis900.c

index b3040eb..e4ba17a 100644 (file)
@@ -1133,7 +1133,7 @@ sis900_transmit(struct nic  *nic,
 
     to = currticks() + TX_TIMEOUT;
 
-    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while ((((volatile u32) (tx_status=txd.cmdsts)) & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {