mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.8 KiB

  1. diff -dur grub-0.97/netboot/main.c src.grub.1130286324.30284.3996273791/grub-0.97/netboot/main.c
  2. --- grub-0.97/netboot/main.c 2004-05-21 00:19:33.000000000 +0200
  3. +++ src.grub.1130286324.30284.3996273791/grub-0.97/netboot/main.c 2005-10-26 02:37:58.000000000 +0200
  4. @@ -54,9 +54,9 @@
  5. static int vendorext_isvalid;
  6. static unsigned long netmask;
  7. -static struct bootpd_t bootp_data;
  8. +struct bootpd_t bootp_data;
  9. static unsigned long xid;
  10. -static unsigned char *end_of_rfc1533 = NULL;
  11. +unsigned char *end_of_rfc1533 = NULL;
  12. #ifndef NO_DHCP_SUPPORT
  13. #endif /* NO_DHCP_SUPPORT */
  14. --- grub-0.97/netboot/natsemi.c 2003-07-09 13:45:38.000000000 +0200
  15. +++ src.grub.1130288662.25040.1734126933/grub-0.97/netboot/natsemi.c 2005-10-26 03:18:03.000000000 +0200
  16. @@ -608,7 +608,7 @@
  17. const char *p) /* Packet */
  18. {
  19. u32 status, to, nstype;
  20. - u32 tx_status;
  21. + volatile u32 tx_status;
  22. /* Stop the transmitter */
  23. outl(TxOff, ioaddr + ChipCmd);
  24. @@ -647,7 +647,7 @@
  25. to = currticks() + TX_TIMEOUT;
  26. - while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  27. + while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  28. /* wait */ ;
  29. if (currticks() >= to) {
  30. --- grub-0.97/netboot/sis900.c~ 2003-07-09 13:45:38.000000000 +0200
  31. +++ grub-0.97/netboot/sis900.c 2005-10-26 03:30:39.000000000 +0200
  32. @@ -901,7 +901,7 @@
  33. const char *p) /* Packet */
  34. {
  35. u32 status, to, nstype;
  36. - u32 tx_status;
  37. + volatile u32 tx_status;
  38. /* Stop the transmitter */
  39. outl(TxDIS, ioaddr + cr);
  40. @@ -940,7 +940,7 @@
  41. to = currticks() + TX_TIMEOUT;
  42. - while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  43. + while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  44. /* wait */ ;
  45. if (currticks() >= to) {