patch-2.4.19 linux-2.4.19/arch/arm/lib/strrchr.S

Next file: linux-2.4.19/arch/arm/mach-clps711x/Makefile
Previous file: linux-2.4.19/arch/arm/lib/io-shark.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/arm/lib/strrchr.S linux-2.4.19/arch/arm/lib/strrchr.S
@@ -18,7 +18,7 @@
 		mov	r3, #0
 1:		ldrb	r2, [r0], #1
 		teq	r2, r1
-		moveq	r3, r0
+		subeq	r3, r0, #1
 		teq	r2, #0
 		bne	1b
 		mov	r0, r3

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)