summaryrefslogtreecommitdiff
path: root/sysutils/grub/patches/patch-am
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/grub/patches/patch-am')
-rw-r--r--sysutils/grub/patches/patch-am22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/grub/patches/patch-am b/sysutils/grub/patches/patch-am
new file mode 100644
index 00000000000..4f8079572fe
--- /dev/null
+++ b/sysutils/grub/patches/patch-am
@@ -0,0 +1,22 @@
+$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) {