]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.4.103/sparc64-add-membar-to-niagara2-memcpy-code.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.4.103 / sparc64-add-membar-to-niagara2-memcpy-code.patch
CommitLineData
c6f854be
GKH
1From foo@baz Thu Aug 7 22:33:35 PDT 2014
2From: "David S. Miller" <davem@davemloft.net>
3Date: Sat, 17 May 2014 11:28:05 -0700
4Subject: sparc64: Add membar to Niagara2 memcpy code.
5
6From: "David S. Miller" <davem@davemloft.net>
7
8[ Upstream commit 5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa ]
9
10This is the prevent previous stores from overlapping the block stores
11done by the memcpy loop.
12
13Based upon a glibc patch by Jose E. Marchesi
14
15Signed-off-by: David S. Miller <davem@davemloft.net>
16Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17---
18 arch/sparc/lib/NG2memcpy.S | 1 +
19 1 file changed, 1 insertion(+)
20
21--- a/arch/sparc/lib/NG2memcpy.S
22+++ b/arch/sparc/lib/NG2memcpy.S
23@@ -236,6 +236,7 @@ FUNC_NAME: /* %o0=dst, %o1=src, %o2=len
24 */
25 VISEntryHalf
26
27+ membar #Sync
28 alignaddr %o1, %g0, %g0
29
30 add %o1, (64 - 1), %o4