Revert r336773: it removed too much.r336773 removed all things xscale. However, some things xscale arereally armv5. Revert that entirely. A more modest removal will follow.Noticed by: andrew@
Remove xscale supportThe OLD XSCALE stuff hasn't been useful in a while. The originalcommitter (cognet@) was the only one that had boards for it. He'sblessed this removal. Newer XSCALE (GUMSTIX)
Remove xscale supportThe OLD XSCALE stuff hasn't been useful in a while. The originalcommitter (cognet@) was the only one that had boards for it. He'sblessed this removal. Newer XSCALE (GUMSTIX) is for hardware that'squite old. After discussion on arm@, it was clear there was no supportfor keeping it.Differential Review: https://reviews.freebsd.org/D16313
show more ...
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
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, jhbMFC after: 1 weekSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D9841
Annotate arm userspace assembler sources stating their tolerance tothe non-executable stack.Reviewed by: andrewSponsored by: The FreeBSD Foundation
Add the needed if-then instructions to build as Thumb-2.
Switch to the ARM unified assembly language as the clang integrated as onlysupports it. Binutils supports it when the ".syntax unified" directiveis set.Sponsored by: ABT Systems Ltd
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 newerbinutils will complain about seeing two .fnstart in a row.
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 newerbinutils will complain about seeing two .fnstart in a row. This changeallows newer tools to compile our code.Reported by: baptReviewed by: imp
Merge index() and strchr() together.As I looked through the C library, I noticed the FreeBSD MIPS port has ahand-written version of index(). This is nice, if it weren't for thefact that most appl
Merge index() and strchr() together.As I looked through the C library, I noticed the FreeBSD MIPS port has ahand-written version of index(). This is nice, if it weren't for thefact 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 andstatically linked applications.Solve this by naming the actual file strchr.[cS] and let it use__strong_reference()/STRONG_ALIAS() to provide the index() routine. Dothe same for rindex()/strrchr().This seems to make the C libraries and static binaries slightly smaller,but this reduction in size seems negligible.
The NetBSD Foundation has granted permission to remove clause 3 and 4 fromtheir software.Obtained from: NetBSD
- 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.
- 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:
- 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
revert r191633; this breaks at91 & xscale (likely all arm)
Change the test at the beginning of strncmp(), from being if (len - 1) < 0to if (len == 0).The length is supposed to be unsigned, so len - 1 < 0 won't happen exceptif len == 0 anyway, and it would
Change the test at the beginning of strncmp(), from being if (len - 1) < 0to if (len == 0).The length is supposed to be unsigned, so len - 1 < 0 won't happen exceptif 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>
MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd areavailable, use _ARM_ARCH_5/_ARM_ARCH_5E instead.MFC After: 3 days
Fix a long line in copyright notice.Pointed out by: Gavin Atkinson gavin.atkinson ury york ac uk
Add an asm version of strlen() for arm (how useful).
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.
MFKernel: Implement ffs with clz on Xscale.
Always use bx for returning on Xscale.Obtained from: NetBSD
Fix the align-to-32-bits code.Obtained from: NetBSD
Import the FreeBSD/arm libc bits.Obtained from: NetBSD