OpenSDE Packages Database (without history before r20070)
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.

78 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../grub/gcc-4.0.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. The usual GCC-4.0 uncovered issues.
  17. - Rene Rebe <rene@exactcode.de>
  18. --- grub-0.97/netboot/etherboot.h.vanilla 2005-10-31 11:04:15.000000000 +0100
  19. +++ grub-0.97/netboot/etherboot.h 2005-10-31 11:05:47.000000000 +0100
  20. @@ -531,9 +531,9 @@
  21. extern int network_ready;
  22. extern struct rom_info rom;
  23. extern struct arptable_t arptable[MAX_ARP];
  24. -extern struct bootpd_t bootp_data;
  25. +static struct bootpd_t bootp_data;
  26. #define BOOTP_DATA_ADDR (&bootp_data)
  27. -extern unsigned char *end_of_rfc1533;
  28. +static unsigned char *end_of_rfc1533;
  29. /* config.c */
  30. extern struct nic nic;
  31. --- grub-0.97/netboot/natsemi.c.vanilla 2005-10-31 11:09:29.000000000 +0100
  32. +++ grub-0.97/netboot/natsemi.c 2005-10-31 11:11:08.000000000 +0100
  33. @@ -608,7 +608,7 @@
  34. const char *p) /* Packet */
  35. {
  36. u32 status, to, nstype;
  37. - u32 tx_status;
  38. + volatile u32 tx_status;
  39. /* Stop the transmitter */
  40. outl(TxOff, ioaddr + ChipCmd);
  41. @@ -647,9 +647,10 @@
  42. to = currticks() + TX_TIMEOUT;
  43. - while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  44. + {
  45. + while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  46. /* wait */ ;
  47. -
  48. + }
  49. if (currticks() >= to) {
  50. printf("natsemi_transmit: TX Timeout! Tx status %X.\n", tx_status);
  51. }
  52. --- grub-0.97/netboot/sis900.c.vanilla 2005-10-31 11:14:48.000000000 +0100
  53. +++ grub-0.97/netboot/sis900.c 2005-10-31 11:15:03.000000000 +0100
  54. @@ -901,7 +901,7 @@
  55. const char *p) /* Packet */
  56. {
  57. u32 status, to, nstype;
  58. - u32 tx_status;
  59. + volatile u32 tx_status;
  60. /* Stop the transmitter */
  61. outl(TxDIS, ioaddr + cr);
  62. @@ -940,7 +940,7 @@
  63. to = currticks() + TX_TIMEOUT;
  64. - while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  65. + while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
  66. /* wait */ ;
  67. if (currticks() >= to) {