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.9 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/linux/linux24/99-byteorder-i386.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. Fix for useage in user-space applications, e.g. kdemultimedia.
  20. - Rene Rebe <rene@exactcode.de>
  21. --- linux/include/asm-i386/byteorder.h 2003-08-23 22:00:53.000000000 +0200
  22. +++ linux/include/asm-i386/byteorder.h 2003-08-23 21:58:06.000000000 +0200
  23. @@ -35,8 +35,8 @@
  24. }
  25. -static inline __u64 ___arch__swab64(__u64 val)
  26. +static __inline__ __u64 ___arch__swab64(__u64 val)
  27. {
  28. union {
  29. struct { __u32 a,b; } s;
  30. --- linux/include/asm-i386/byteorder.h 2003-08-23 22:00:53.000000000 +0200
  31. +++ linux/include/asm-i386/byteorder.h 2003-08-23 21:58:06.000000000 +0200
  32. @@ -43,13 +43,13 @@
  33. } v;
  34. v.u = val;
  35. #ifdef CONFIG_X86_BSWAP
  36. - asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
  37. + __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
  38. : "=r" (v.s.a), "=r" (v.s.b)
  39. : "0" (v.s.a), "1" (v.s.b));
  40. #else
  41. v.s.a = ___arch__swab32(v.s.a);
  42. v.s.b = ___arch__swab32(v.s.b);
  43. - asm("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
  44. + __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
  45. #endif
  46. return v.u;
  47. }