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.

96 lines
4.1 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/linux24/gcc33-fixes.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./arch/i386/math-emu/poly.h.orig 2003-05-14 12:49:58.000000000 -0400
  23. +++ ./arch/i386/math-emu/poly.h 2003-05-14 12:54:30.000000000 -0400
  24. @@ -75,10 +75,10 @@
  25. /* Add the 12 byte Xsig x2 to Xsig dest, with no checks for overflow. */
  26. static inline void add_Xsig_Xsig(Xsig *dest, const Xsig *x2)
  27. {
  28. - asm volatile ("movl %1,%%edi; movl %2,%%esi;
  29. - movl (%%esi),%%eax; addl %%eax,(%%edi);
  30. - movl 4(%%esi),%%eax; adcl %%eax,4(%%edi);
  31. - movl 8(%%esi),%%eax; adcl %%eax,8(%%edi);"
  32. + asm volatile ("movl %1,%%edi; movl %2,%%esi;\n"
  33. + "movl (%%esi),%%eax; addl %%eax,(%%edi);\n"
  34. + "movl 4(%%esi),%%eax; adcl %%eax,4(%%edi);\n"
  35. + "movl 8(%%esi),%%eax; adcl %%eax,8(%%edi);\n"
  36. :"=g" (*dest):"g" (dest), "g" (x2)
  37. :"ax","si","di");
  38. }
  39. @@ -90,16 +90,16 @@
  40. problem, but keep fingers crossed! */
  41. static inline void add_two_Xsig(Xsig *dest, const Xsig *x2, long int *exp)
  42. {
  43. - asm volatile ("movl %2,%%ecx; movl %3,%%esi;
  44. - movl (%%esi),%%eax; addl %%eax,(%%ecx);
  45. - movl 4(%%esi),%%eax; adcl %%eax,4(%%ecx);
  46. - movl 8(%%esi),%%eax; adcl %%eax,8(%%ecx);
  47. - jnc 0f;
  48. - rcrl 8(%%ecx); rcrl 4(%%ecx); rcrl (%%ecx)
  49. - movl %4,%%ecx; incl (%%ecx)
  50. - movl $1,%%eax; jmp 1f;
  51. - 0: xorl %%eax,%%eax;
  52. - 1:"
  53. + asm volatile ("movl %2,%%ecx; movl %3,%%esi;\n"
  54. + "movl (%%esi),%%eax; addl %%eax,(%%ecx);\n"
  55. + "movl 4(%%esi),%%eax; adcl %%eax,4(%%ecx);\n"
  56. + "movl 8(%%esi),%%eax; adcl %%eax,8(%%ecx);\n"
  57. + "jnc 0f;\n"
  58. + "rcrl 8(%%ecx); rcrl 4(%%ecx); rcrl (%%ecx)\n"
  59. + "movl %4,%%ecx; incl (%%ecx)\n"
  60. + "movl $1,%%eax; jmp 1f;\n"
  61. + "0: xorl %%eax,%%eax;\n"
  62. + "1:\n"
  63. :"=g" (*exp), "=g" (*dest)
  64. :"g" (dest), "g" (x2), "g" (exp)
  65. :"cx","si","ax");
  66. @@ -110,11 +110,11 @@
  67. /* This is faster in a loop on my 386 than using the "neg" instruction. */
  68. static inline void negate_Xsig(Xsig *x)
  69. {
  70. - asm volatile("movl %1,%%esi; "
  71. - "xorl %%ecx,%%ecx; "
  72. - "movl %%ecx,%%eax; subl (%%esi),%%eax; movl %%eax,(%%esi); "
  73. - "movl %%ecx,%%eax; sbbl 4(%%esi),%%eax; movl %%eax,4(%%esi); "
  74. - "movl %%ecx,%%eax; sbbl 8(%%esi),%%eax; movl %%eax,8(%%esi); "
  75. + asm volatile("movl %1,%%esi;\n"
  76. + "xorl %%ecx,%%ecx;\n"
  77. + "movl %%ecx,%%eax; subl (%%esi),%%eax; movl %%eax,(%%esi);\n"
  78. + "movl %%ecx,%%eax; sbbl 4(%%esi),%%eax; movl %%eax,4(%%esi);\n"
  79. + "movl %%ecx,%%eax; sbbl 8(%%esi),%%eax; movl %%eax,8(%%esi);\n"
  80. :"=g" (*x):"g" (x):"si","ax","cx");
  81. }
  82. --- ./drivers/sound/cs46xx.c.orig 2003-06-13 14:37:20.000000000 -0400
  83. +++ ./drivers/sound/cs46xx.c 2003-06-13 14:37:47.000000000 -0400
  84. @@ -947,8 +947,8 @@
  85. struct InitStruct
  86. {
  87. - u32 long off;
  88. - u32 long val;
  89. + u32 off;
  90. + u32 val;
  91. } InitArray[] = { {0x00000040, 0x3fc0000f},
  92. {0x0000004c, 0x04800000},