diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-09-17 14:07:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-28 16:53:16 +0100 |
commit | 1e2d6bffc5181f65178b474a93406145578a7490 (patch) | |
tree | 2d8a1b30795d09f29b1a330feb368c0ddd0363fb /meta/recipes-multimedia/pulseaudio/libatomics-ops/libatomics-ops_fix_for_x32.patch | |
parent | cb1c31939d9dbc52924cee56f93f67d8b699a02c (diff) | |
download | poky-1e2d6bffc5181f65178b474a93406145578a7490.tar.gz |
libatomics-ops: update to the latest version 7.2
All old patches are droped because:
Merged into 7.2 by upstream:
* fedora/libatomic_ops-1.2-ppclwzfix.patch
* gentoo/libatomic_ops-1.2-mips.patch
* gentoo/sh4-atomic-ops.patch
* libatomics-ops_fix_for_x32.patch
Obsolete:
* doublefix.patch
(From OE-Core rev: 59afdbbddbacf5d9c668bb8f011c8f150421d498)
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio/libatomics-ops/libatomics-ops_fix_for_x32.patch')
-rw-r--r-- | meta/recipes-multimedia/pulseaudio/libatomics-ops/libatomics-ops_fix_for_x32.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops/libatomics-ops_fix_for_x32.patch b/meta/recipes-multimedia/pulseaudio/libatomics-ops/libatomics-ops_fix_for_x32.patch deleted file mode 100644 index 17686063de..0000000000 --- a/meta/recipes-multimedia/pulseaudio/libatomics-ops/libatomics-ops_fix_for_x32.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Remove the `q' suffix on x86-64 atomic instructions. | ||
4 | |||
5 | We don't need the `q' suffix on x86_64 atomic instructions for AO_t, | ||
6 | which is defined as "unsigned long". "unsigned long" is 32bit for x32 | ||
7 | and 64bit for x86-64. The register operand in x86-64 atomic instructions | ||
8 | is sufficient to properly determine the register size. | ||
9 | |||
10 | Received this patch from H.J. Lu <hjl.tools@gmail.com> | ||
11 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/02 | ||
12 | |||
13 | --- libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/x86_64.h.x32 2005-09-28 17:16:38.000000000 -0700 | ||
14 | +++ libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/x86_64.h 2011-12-02 09:29:54.265251875 -0800 | ||
15 | @@ -60,7 +60,7 @@ AO_fetch_and_add_full (volatile AO_t *p, | ||
16 | { | ||
17 | AO_t result; | ||
18 | |||
19 | - __asm__ __volatile__ ("lock; xaddq %0, %1" : | ||
20 | + __asm__ __volatile__ ("lock; xadd %0, %1" : | ||
21 | "=r" (result), "=m" (*p) : "0" (incr), "m" (*p) | ||
22 | : "memory"); | ||
23 | return result; | ||
24 | @@ -111,7 +111,7 @@ AO_int_fetch_and_add_full (volatile unsi | ||
25 | AO_INLINE void | ||
26 | AO_or_full (volatile AO_t *p, AO_t incr) | ||
27 | { | ||
28 | - __asm__ __volatile__ ("lock; orq %1, %0" : | ||
29 | + __asm__ __volatile__ ("lock; or %1, %0" : | ||
30 | "=m" (*p) : "r" (incr), "m" (*p) : "memory"); | ||
31 | } | ||
32 | |||
33 | @@ -136,7 +136,7 @@ AO_compare_and_swap_full(volatile AO_t * | ||
34 | AO_t old, AO_t new_val) | ||
35 | { | ||
36 | char result; | ||
37 | - __asm__ __volatile__("lock; cmpxchgq %3, %0; setz %1" | ||
38 | + __asm__ __volatile__("lock; cmpxchg %3, %0; setz %1" | ||
39 | : "=m"(*addr), "=q"(result) | ||
40 | : "m"(*addr), "r" (new_val), "a"(old) : "memory"); | ||
41 | return (int) result; | ||