summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-05-17 11:28:05 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-14 09:24:16 +0800
commit921df8ed4c86310d215b62579703cc89741d6361 (patch)
tree928581f605e08aef71da58ac4433c802bdbd81a3 /arch
parent720910a60cc2509160ec043459081f274c12ccce (diff)
downloadlinux-3.10-921df8ed4c86310d215b62579703cc89741d6361.tar.gz
linux-3.10-921df8ed4c86310d215b62579703cc89741d6361.tar.bz2
linux-3.10-921df8ed4c86310d215b62579703cc89741d6361.zip
sparc64: Add membar to Niagara2 memcpy code.
[ Upstream commit 5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa ] This is the prevent previous stores from overlapping the block stores done by the memcpy loop. Based upon a glibc patch by Jose E. Marchesi Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/lib/NG2memcpy.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/lib/NG2memcpy.S b/arch/sparc/lib/NG2memcpy.S
index 2c20ad63ddb..30eee6e8a81 100644
--- a/arch/sparc/lib/NG2memcpy.S
+++ b/arch/sparc/lib/NG2memcpy.S
@@ -236,6 +236,7 @@ FUNC_NAME: /* %o0=dst, %o1=src, %o2=len */
*/
VISEntryHalf
+ membar #Sync
alignaddr %o1, %g0, %g0
add %o1, (64 - 1), %o4