diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-01-06 19:10:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-01-06 19:10:19 +0000 |
commit | 41600a956e7003933e85b9ee75c6ea767d618229 (patch) | |
tree | 4291fae575885b471230ce40573937674d5178fa /sys/arch/arm | |
parent | b1981eac4b47846cb3c6ce2e5b0197c4f7e52e4d (diff) |
Remove copystr(9), unless used internally by copy{in,out}str.
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/copystr.S | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/arch/arm/arm/copystr.S b/sys/arch/arm/arm/copystr.S index 956e8658e75..422535a8680 100644 --- a/sys/arch/arm/arm/copystr.S +++ b/sys/arch/arm/arm/copystr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: copystr.S,v 1.10 2022/12/08 01:25:44 guenther Exp $ */ +/* $OpenBSD: copystr.S,v 1.11 2023/01/06 19:10:18 miod Exp $ */ /* $NetBSD: copystr.S,v 1.8 2002/10/13 14:54:48 bjh21 Exp $ */ /* @@ -56,38 +56,6 @@ .word cpu_info_primary #endif -/* - * r0 - from - * r1 - to - * r2 - maxlens - * r3 - lencopied - * - * Copy string from r0 to r1 - */ -ENTRY(copystr) - stmfd sp!, {r4-r5} /* stack is 8 byte aligned */ - teq r2, #0x00000000 - mov r5, #0x00000000 - moveq r0, #ENAMETOOLONG - beq 2f - -1: ldrb r4, [r0], #0x0001 - add r5, r5, #0x00000001 - teq r4, #0x00000000 - strb r4, [r1], #0x0001 - teqne r5, r2 - bne 1b - - teq r4, #0x00000000 - moveq r0, #0x00000000 - movne r0, #ENAMETOOLONG - -2: teq r3, #0x00000000 - strne r5, [r3] - - ldmfd sp!, {r4-r5} /* stack is 8 byte aligned */ - mov pc, lr - #define SAVE_REGS stmfd sp!, {r4-r6} #define RESTORE_REGS ldmfd sp!, {r4-r6} |