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.

53 lines
1.8 KiB

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