patch-2.2.16 linux/arch/s390/lib/strncpy.S
Next file: linux/arch/s390/mm/fault.c
Previous file: linux/arch/s390/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Jun 7 14:26:42 2000
- Orig file:
v2.2.15/linux/arch/s390/lib/strncpy.S
- Orig date:
Tue Jan 4 10:12:12 2000
diff -urN v2.2.15/linux/arch/s390/lib/strncpy.S linux/arch/s390/lib/strncpy.S
@@ -17,16 +17,14 @@
LR 1,2 # don't touch address in R2
LTR 4,4
JZ strncpy_exit # 0 bytes -> nothing to do
- AHI 4,-1
SR 0,0
- BASR 5,0
strncpy_loop:
ICM 0,1,0(3) # ICM sets the cc, IC does not
LA 3,1(0,3)
STC 0,0(0,1)
LA 1,1(0,1)
JZ strncpy_exit # ICM inserted a 0x00
- BCTR 4,5 # R4 -= 1, jump to strncpy_loop if >= 0
+ BRCT 4,strncpy_loop # R4 -= 1, jump to strncpy_loop if > 0
strncpy_exit:
BR 14
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)