Skip to content

Commit

Permalink
sparc64: Add membar to Niagara2 memcpy code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed May 17, 2014
1 parent b18eb2d commit 5aa4ecf
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 5aa4ecf

Please sign in to comment.