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.

58 lines
2.0 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/99-byteorder-i386.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. Fix for useage in user-space applications, e.g. kdemultimedia.
  23. - Rene Rebe <rene@rocklinux.org>
  24. --- linux/include/asm-i386/byteorder.h 2003-08-23 22:00:53.000000000 +0200
  25. +++ linux/include/asm-i386/byteorder.h 2003-08-23 21:58:06.000000000 +0200
  26. @@ -35,8 +35,8 @@
  27. }
  28. -static inline __u64 ___arch__swab64(__u64 val)
  29. +static __inline__ __u64 ___arch__swab64(__u64 val)
  30. {
  31. union {
  32. struct { __u32 a,b; } s;
  33. --- linux/include/asm-i386/byteorder.h 2003-08-23 22:00:53.000000000 +0200
  34. +++ linux/include/asm-i386/byteorder.h 2003-08-23 21:58:06.000000000 +0200
  35. @@ -43,13 +43,13 @@
  36. } v;
  37. v.u = val;
  38. #ifdef CONFIG_X86_BSWAP
  39. - asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
  40. + __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
  41. : "=r" (v.s.a), "=r" (v.s.b)
  42. : "0" (v.s.a), "1" (v.s.b));
  43. #else
  44. v.s.a = ___arch__swab32(v.s.a);
  45. v.s.b = ___arch__swab32(v.s.b);
  46. - asm("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
  47. + __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
  48. #endif
  49. return v.u;
  50. }