diff options
author | cognet <cognet@FreeBSD.org> | 2004-11-09 16:49:14 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-11-09 16:49:14 +0000 |
commit | 98ebb25e56d0f452f1cfd5d33770eeaedca698fd (patch) | |
tree | 8ccabba1a460da5c135164486fcb8597cd0c3fc5 /lib/libc/arm/string/memmove.S | |
parent | 7e3e230230217c6f10e0156b63efa735c2f9baef (diff) | |
download | FreeBSD-src-98ebb25e56d0f452f1cfd5d33770eeaedca698fd.zip FreeBSD-src-98ebb25e56d0f452f1cfd5d33770eeaedca698fd.tar.gz |
Use the RET macro.
For setjmp() and longjmp(), put the signal mask where it's supposed to be,
instead of in the space reserved for fp regs.
Diffstat (limited to 'lib/libc/arm/string/memmove.S')
-rw-r--r-- | lib/libc/arm/string/memmove.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arm/string/memmove.S b/lib/libc/arm/string/memmove.S index fff9618..f65a254 100644 --- a/lib/libc/arm/string/memmove.S +++ b/lib/libc/arm/string/memmove.S @@ -53,7 +53,7 @@ ENTRY(bcopy) #endif /* Do the buffers overlap? */ cmp r0, r1 - moveq pc, lr /* Bail now if src/dst are the same */ + RETeq /* Bail now if src/dst are the same */ subcc r3, r0, r1 /* if (dst > src) r3 = dst - src */ subcs r3, r1, r0 /* if (src > dsr) r3 = src - dst */ cmp r3, r2 /* if (r3 < len) we have an overlap */ @@ -64,7 +64,7 @@ ENTRY(bcopy) bcc .Lmemmove_backwards moveq r0, #0 /* Quick abort for len=0 */ - moveq pc, lr + RETeq stmdb sp!, {r0, lr} /* memmove() returns dest addr */ subs r2, r2, #4 @@ -382,7 +382,7 @@ ENTRY(bcopy) .Lmemmove_bl4: /* less than 4 bytes to go */ adds r2, r2, #4 - moveq pc, lr /* done */ + RETeq /* done */ /* copy the crud byte at a time */ cmp r2, #2 @@ -392,7 +392,7 @@ ENTRY(bcopy) strgeb r3, [r0, #-1]! ldrgtb r3, [r1, #-1]! strgtb r3, [r0, #-1]! - mov pc, lr + RET /* erg - unaligned destination */ .Lmemmove_bdestul: |