e9fe55194e
Patches provided by Dieter Roelants in PR pkg/36549.
22 lines
721 B
Text
22 lines
721 B
Text
$NetBSD: patch-am,v 1.3 2007/06/25 13:05:57 tron Exp $
|
|
|
|
--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/natsemi.c 2003-07-09 13:45:38.000000000 +0200
|
|
+++ netboot/natsemi.c 2007-06-24 18:25:21.000000000 +0200
|
|
@@ -608,7 +608,7 @@
|
|
const char *p) /* Packet */
|
|
{
|
|
u32 status, to, nstype;
|
|
- u32 tx_status;
|
|
+ volatile u32 tx_status;
|
|
|
|
/* Stop the transmitter */
|
|
outl(TxOff, ioaddr + ChipCmd);
|
|
@@ -647,7 +647,7 @@
|
|
|
|
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) {
|