History log of /freebsd-head/lib/libc/arm/string/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f4c9f5bff2158c310f9429776a62160028965f49 28-Dec-2019 pfg <pfg@FreeBSD.org> arm/ffs.S: remove stale comment.

We already use the CLZ instruction.

Discussed with: andrew
fs.S
de47afa9bf641ecb2bf15b198b7dacc69e2dc4a1 27-Jul-2018 imp <imp@FreeBSD.org> Revert r336773: it removed too much.

r336773 removed all things xscale. However, some things xscale are
really armv5. Revert that entirely. A more modest removal will follow.

Noticed by: andrew@
emcpy.S
emcpy_xscale.S
0a4723bbc5f10eb76889751281167006511d2988 27-Jul-2018 imp <imp@FreeBSD.org> Remove xscale support

The OLD XSCALE stuff hasn't been useful in a while. The original
committer (cognet@) was the only one that had boards for it. He's
blessed this removal. Newer XSCALE (GUMSTIX) is for hardware that's
quite old. After discussion on arm@, it was clear there was no support
for keeping it.

Differential Review: https://reviews.freebsd.org/D16313
emcpy.S
emcpy_xscale.S
94f539fc96d08f1c9a3b92ca02ff31c26bbda0e0 02-Mar-2017 brooks <brooks@FreeBSD.org> Correct MDSRCS use in <arch>/string/Makefile.inc.

- Remove .c files which duplicate entries in MISRCS.
- Use the same, less merge conflict prone style in all cases.
- Use MDSRCS for mips (.c and .S files both ended up in SRCS).
- Remove pointless sparc64 Makefile.inc.
- Remove uninformative foreign VCS ID entries.

Reviewed by: emaste, imp, jhb
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9841
akefile.inc
2b6ac44d5d1daf1a746ac5b9a9c426b621aaa82b 29-Sep-2015 kib <kib@FreeBSD.org> Annotate arm userspace assembler sources stating their tolerance to
the non-executable stack.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation
fs.S
emcmp.S
emcpy_arm.S
emcpy_xscale.S
emmove.S
emset.S
trcmp.S
trlen.S
trncmp.S
f860fdb4f87b16ee560bab5ee87a8bd11bc579ad 31-May-2015 andrew <andrew@FreeBSD.org> Add the needed if-then instructions to build as Thumb-2.
fs.S
emmove.S
emset.S
trcmp.S
trlen.S
trncmp.S
c05d95287e7926983ce380988561f0f41443e50f 29-Nov-2014 andrew <andrew@FreeBSD.org> Switch to the ARM unified assembly language as the clang integrated as only
supports it. Binutils supports it when the ".syntax unified" directive
is set.

Sponsored by: ABT Systems Ltd
fs.S
emcmp.S
emcpy_arm.S
emcpy_xscale.S
emmove.S
emset.S
trlen.S
59d82a0684865a61516aae0b1c29c6f991170ff2 31-Aug-2014 ian <ian@FreeBSD.org> In ARM asm code, ensure that every ENTRY(foo) has a matching END(foo).
The EABI unwind info requires a .fnend for every .fnstart, and newer
binutils will complain about seeing two .fnstart in a row. This change
allows newer tools to compile our code.

Reported by: bapt
Reviewed by: imp
fs.S
emcmp.S
emcpy_arm.S
emcpy_xscale.S
emmove.S
emset.S
trcmp.S
trlen.S
trncmp.S
6014007e0092971acca93d674c9cc07855981aef 03-Jan-2012 ed <ed@FreeBSD.org> Merge index() and strchr() together.

As I looked through the C library, I noticed the FreeBSD MIPS port has a
hand-written version of index(). This is nice, if it weren't for the
fact that most applications call strchr() instead.

Also, on the other architectures index() and strchr() are identical,
meaning we have two identical pieces of code in the C library and
statically linked applications.

Solve this by naming the actual file strchr.[cS] and let it use
__strong_reference()/STRONG_ALIAS() to provide the index() routine. Do
the same for rindex()/strrchr().

This seems to make the C libraries and static binaries slightly smaller,
but this reduction in size seems negligible.
akefile.inc
63d94ede3417d65e24c3bad71fce236f5a081a2b 02-Mar-2010 joel <joel@FreeBSD.org> The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD
zero.S
emcpy_arm.S
emmove.S
b91bec2bd9b4fd4d1c040ca5254dc4b95c6c9ee1 21-Jun-2009 stas <stas@FreeBSD.org> - Eliminate extra subcs instruction. I have not noticed before that we
always perform substraction now, so no instruction could be rordered
to eliminate the conditional substraction.
trncmp.S
4cb23c58c6ceb80017c2195d4fe9f27465c1949f 21-Jun-2009 stas <stas@FreeBSD.org> - Fix strncmp on arm. Return 0 as result without performing the
main cycle only if the len passed is equal to 0. If end address
overflows use last possible address as the end address.

Based on: discussion on arm@
MFC after: 1 month
trncmp.S
3567962cfa25f07a008441653e2cea7274feb8f8 06-May-2009 sam <sam@FreeBSD.org> revert r191633; this breaks at91 & xscale (likely all arm)
trncmp.S
98bad5286975a431e248f82fe967596915b1e2f1 28-Apr-2009 cognet <cognet@FreeBSD.org> Change the test at the beginning of strncmp(), from being if (len - 1) < 0
to if (len == 0).
The length is supposed to be unsigned, so len - 1 < 0 won't happen except
if len == 0 anyway, and it would return 0 when it shouldn't, if len was
> INT_MAX.

Spotted out by: Channa <channa kad gmail com>
trncmp.S
270e0a1e333630cb522d30b5876a6c45b6b49902 13-Oct-2007 cognet <cognet@FreeBSD.org> MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd are
available, use _ARM_ARCH_5/_ARM_ARCH_5E instead.

MFC After: 3 days
fs.S
emcpy.S
emset.S
8d7cf8436309b88e5cf0e7802a0c53441cedff72 03-Oct-2005 cognet <cognet@FreeBSD.org> Fix a long line in copyright notice.

Pointed out by: Gavin Atkinson gavin.atkinson ury york ac uk
trlen.S
c1683d924885fc494086ce69137ceb379d89bb9c 03-Oct-2005 cognet <cognet@FreeBSD.org> Add an asm version of strlen() for arm (how useful).
akefile.inc
trlen.S
98ebb25e56d0f452f1cfd5d33770eeaedca698fd 09-Nov-2004 cognet <cognet@FreeBSD.org> 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.
fs.S
emcmp.S
emmove.S
emset.S
trcmp.S
trncmp.S
913f8c4e59f34d4a7b29814e5e2699ae9565ac1e 07-Nov-2004 cognet <cognet@FreeBSD.org> MFKernel: Implement ffs with clz on Xscale.
fs.S
65373cda62aaf6f84b465869b10892aa892f38d6 23-Sep-2004 cognet <cognet@FreeBSD.org> Always use bx for returning on Xscale.

Obtained from: NetBSD
emcpy_xscale.S
35da58a9fd717bf09beadaeb771e5e2844f86f93 23-Sep-2004 cognet <cognet@FreeBSD.org> Fix the align-to-32-bits code.

Obtained from: NetBSD
emcmp.S
bb6bbd6342ef3a05d837b89817ec6f058d1497b3 14-May-2004 cognet <cognet@FreeBSD.org> Import the FreeBSD/arm libc bits.

Obtained from: NetBSD
akefile.inc
copy.S
zero.S
fs.S
emcmp.S
emcpy.S
emcpy_arm.S
emcpy_xscale.S
emmove.S
emset.S
trcmp.S
trncmp.S