aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2014-05-17 11:20:27 -0700
committerDavid S. Miller <davem@davemloft.net>2014-05-17 14:09:55 -0700
commit834caf06f33d79be54cff63c274fba2845513593 (patch)
treea9f1b268f46d99540332dd9220b139bc0f720f45 /sysdeps/sparc
parente184a918bb5866a6488257d37ecc4e4ff747b7b7 (diff)
downloadglibc-834caf06f33d79be54cff63c274fba2845513593.zip
glibc-834caf06f33d79be54cff63c274fba2845513593.tar.gz
glibc-834caf06f33d79be54cff63c274fba2845513593.tar.bz2
Fix sparc memcpy data corruption when using niagara2 optimized routines.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing membar to avoid block loads/stores to overlap previous stores.
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S b/sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S
index b43a9e3..a1a9642 100644
--- a/sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S
+++ b/sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S
@@ -211,6 +211,7 @@ ENTRY(__memcpy_niagara2)
*/
VISEntryHalf
+ membar #Sync
alignaddr %o1, %g0, %g0
add %o1, (64 - 1), %o4