mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 17:19:22 +00:00
* 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.
This commit is contained in:
1 parent
79a9f283de
commit
c819ffee91
3 files changed
+10
-4
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2006-09-08 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* netboot/etherboot.h: Remove incorrect extern declarations of
|
* netboot/etherboot.h: Remove incorrect extern declarations of
|
||||||
|
|||||||
+2
-2
@@ -608,7 +608,7 @@ natsemi_transmit(struct nic *nic,
|
|||||||
const char *p) /* Packet */
|
const char *p) /* Packet */
|
||||||
{
|
{
|
||||||
u32 status, to, nstype;
|
u32 status, to, nstype;
|
||||||
u32 tx_status;
|
volatile u32 tx_status;
|
||||||
|
|
||||||
/* Stop the transmitter */
|
/* Stop the transmitter */
|
||||||
outl(TxOff, ioaddr + ChipCmd);
|
outl(TxOff, ioaddr + ChipCmd);
|
||||||
@@ -647,7 +647,7 @@ natsemi_transmit(struct nic *nic,
|
|||||||
|
|
||||||
to = currticks() + TX_TIMEOUT;
|
to = currticks() + TX_TIMEOUT;
|
||||||
|
|
||||||
while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
||||||
/* wait */ ;
|
/* wait */ ;
|
||||||
|
|
||||||
if (currticks() >= to) {
|
if (currticks() >= to) {
|
||||||
|
|||||||
+2
-2
@@ -901,7 +901,7 @@ sis900_transmit(struct nic *nic,
|
|||||||
const char *p) /* Packet */
|
const char *p) /* Packet */
|
||||||
{
|
{
|
||||||
u32 status, to, nstype;
|
u32 status, to, nstype;
|
||||||
u32 tx_status;
|
volatile u32 tx_status;
|
||||||
|
|
||||||
/* Stop the transmitter */
|
/* Stop the transmitter */
|
||||||
outl(TxDIS, ioaddr + cr);
|
outl(TxDIS, ioaddr + cr);
|
||||||
@@ -940,7 +940,7 @@ sis900_transmit(struct nic *nic,
|
|||||||
|
|
||||||
to = currticks() + TX_TIMEOUT;
|
to = currticks() + TX_TIMEOUT;
|
||||||
|
|
||||||
while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
||||||
/* wait */ ;
|
/* wait */ ;
|
||||||
|
|
||||||
if (currticks() >= to) {
|
if (currticks() >= to) {
|
||||||
|
|||||||
Reference in new issue
Block a user