Skip to content

Commit

Permalink
sparc64: Add membar to Niagara2 memcpy code.
Browse files Browse the repository at this point in the history
[ Upstream commit 5aa4ecf ]

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>
  • Loading branch information
David S. Miller authored and Greg Kroah-Hartman committed Aug 14, 2014
1 parent 720910a commit 921df8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/lib/NG2memcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ FUNC_NAME: /* %o0=dst, %o1=src, %o2=len */
*/
VISEntryHalf

membar #Sync
alignaddr %o1, %g0, %g0

add %o1, (64 - 1), %o4
Expand Down

0 comments on commit 921df8e

Please sign in to comment.