Skip to contentSkip to conversation

sparc64: Add membar to Niagara2 memcpy code.

PATCH New David Miller 1 participant 1 message May 17, 2014 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 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

---
 arch/sparc/lib/NG2memcpy.S | 1 +
 1 file changed, 1 insertion(+)
arch/sparc/lib/NG2memcpy.S +1 -0
index 2c20ad6..30eee6e 100644
@@ -236,6 +236,7 @@ FUNC_NAME:	/* %o0=dst, %o1=src, %o2=len */
 	 */
 	VISEntryHalf
 
+	membar		#Sync
 	alignaddr	%o1, %g0, %g0
 
 	add		%o1, (64 - 1), %o4
Signature · 1 line
1.8.1.2