From: David S. Miller Date: Sat, 17 May 2014 18:28:05 +0000 (-0700) Subject: sparc64: Add membar to Niagara2 memcpy code. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa;p=linux-beck.git sparc64: Add membar to Niagara2 memcpy code. 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 --- diff --git a/arch/sparc/lib/NG2memcpy.S b/arch/sparc/lib/NG2memcpy.S index 2c20ad63ddbf..30eee6e8a81b 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