]>
Commit | Line | Data |
---|---|---|
c6f854be GKH |
1 | From foo@baz Thu Aug 7 22:33:35 PDT 2014 |
2 | From: "David S. Miller" <davem@davemloft.net> | |
3 | Date: Sat, 17 May 2014 11:28:05 -0700 | |
4 | Subject: sparc64: Add membar to Niagara2 memcpy code. | |
5 | ||
6 | From: "David S. Miller" <davem@davemloft.net> | |
7 | ||
8 | [ Upstream commit 5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa ] | |
9 | ||
10 | This is the prevent previous stores from overlapping the block stores | |
11 | done by the memcpy loop. | |
12 | ||
13 | Based upon a glibc patch by Jose E. Marchesi | |
14 | ||
15 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
16 | Signed-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 |