patch-2.1.40 linux/arch/sparc64/lib/strncpy_from_user.S

Next file: linux/arch/sparc64/mm/fault.c
Previous file: linux/arch/sparc64/lib/strlen_user.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/arch/sparc64/lib/strncpy_from_user.S linux/arch/sparc64/lib/strncpy_from_user.S
@@ -24,14 +24,14 @@
 	sub	%g0, %o2, %o3
 	add	%o0, %o2, %o0
 10:
-	ldub	[%o1 + %o3], %o4
+	lduba	[%o1 + %o3] ASI_S, %o4
 1:
 	brz,pn	%o4, 2f
 	 stb	%o4, [%o0 + %o3]
 	addcc	%o3, 1, %o3
 	bne,pt	%xcc, 1b
 11:
-	 ldub	[%o1 + %o3], %o4
+	 lduba	[%o1 + %o3] ASI_S, %o4
 	retl
 	 mov	%o2, %o0
 2:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov