History log of /freebsd-9.3-release/lib/libc/arm/
Revision Date Author Comments
267654 20-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


251365 04-Jun-2013 kib

MFC r251047:
Avoid a nested frame for getcontext() call in check_deferred_signal().


246775 13-Feb-2013 kib

MFC r246117:
Rework the __vdso_* symbols attributes to only make the symbols weak,
but use normal references instead of weak. This makes the statically
linked binaries to use fast gettimeofday(2) by forcing the linker to
resolve references and providing the neccessary functions.


237491 23-Jun-2012 marius

MFC: r231616, r232497, r234337

Add __aeabi_read_tp function required for thread-local storage.


237396 21-Jun-2012 marius

MFC: r233106, r233107

Fix TLS for statically linked binaries.


237023 13-Jun-2012 mav

MFC r230188i (by das):
Correct some bugs that resulted from arm/_fpmath.h being blindly copied
from the x86 version, which has a completely different long double
format.


231981 21-Feb-2012 kib

MFC r230429:
Add API for obtaining extended machine context states that cannot be
fit into existing mcontext_t.

On i386 and amd64 do return the extended FPU states using
getcontextx(3). For other architectures, getcontextx(3) returns the
same information as getcontext(2).

MFC r230864:
Make the sys/ucontext.h self-contained by changing the return type
of __getcontextx_size(3) from size_t to int.


225736 23-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


218909 21-Feb-2011 brucec

Fix typos - remove duplicate "the".

PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days


204607 02-Mar-2010 joel

The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD


194704 23-Jun-2009 ed

Remove unneeded stdlib directories.

It's not necessary to add stdlib directories for each architecture, even
if the architecture doesn't implement any files of its own.

Submitted by: Christoph Mallon


194585 21-Jun-2009 stas

- 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.


194583 21-Jun-2009 stas

- 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


193145 31-May-2009 marcel

Use GCC's __SOFTFP__ to test whether we're being compiled
with softfloat or not. Now -msoft-float can be overridden
more easily.


191836 06-May-2009 sam

revert r191633; this breaks at91 & xscale (likely all arm)


191633 28-Apr-2009 cognet

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>


188827 19-Feb-2009 imp

These warnings are only relevant on NetBSD it seems. They don't seem
to be relevant to FreeBSD at all.


186461 23-Dec-2008 marcel

Add support for the FPA floating-point format on ARM. The
FPA floating-point format is identical to the VFP format,
but is always stored in big-endian.
Introduce _IEEE_WORD_ORDER to describe the byte-order of
the FP representation.

Obtained from: Juniper Networks, Inc


184789 09-Nov-2008 ed

Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4.

Looking at our source code history, it seems the uname(),
getdomainname() and setdomainname() system calls got deprecated
somewhere after FreeBSD 1.1, but they have never been phased out
properly. Because we don't have a COMPAT_FREEBSD1, just use
COMPAT_FREEBSD4.

Also fix the Linuxolator to build without the setdomainname() routine by
just making it call userland_sysctl on kern.domainname. Also replace the
setdomainname()'s implementation to use this approach, because we're
duplicating code with sysctl_domainname().

I wasn't able to keep these three routines working in our
COMPAT_FREEBSD32, because that would require yet another keyword for
syscalls.master (COMPAT4+NOPROTO). Because this routine is probably
unused already, this won't be a problem in practice. If it turns out to
be a problem, we'll just restore this functionality.

Reviewed by: rdivacky, kib


183876 14-Oct-2008 raj

Let libstand(3) build on ARM.

This is a pre-requisite for loader(8) + U-Boot support library on this arch.


174680 16-Dec-2007 das

Arrange so that the NaN returned by strtod("nan", NULL) is the same as
the NaN returned by strtod("nan()", NULL).


172775 18-Oct-2007 cognet

Unbreak arm build by removing duplicate symbols.


172616 13-Oct-2007 cognet

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


171261 05-Jul-2007 peter

Fix remaining syntax errors (missing semicolons)

Submitted by: Björn König <bkoenig@cs.tu-berlin.de>
Approved by: re (kensmith, followup commits)


171222 04-Jul-2007 peter

Add missing \ characters in PSEUDO() macro on arm. Oops.

Submitted by: cognet
Approved by: re (kensmith)


171218 04-Jul-2007 peter

Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudo
syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case
will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT,
the .c wrappers will go away and libc will make direct syscalls.

After 7-stable starts, the direct syscall method will be default.

Approved by: re (kensmith)


171217 04-Jul-2007 peter

Adjust the syscall stub macros to be consistent in their meaning. In
particular:
SYSCALL() makes a syscall, with errno handling, and continues execution
directly after the macro in the non-error case.
RSYSCALL() is just like SYSCALL(), but returns after success.
Both SYSCALL(name) and RSYSCALL(name) export "__sys_name" as a strong
symbol, with "_name" and "name" as weak aliases.
PSEUDO() is just like RSYSCALL(), but skipping the "name" weak alias. It
still does "__sys_name" and "_name".

Change i386 to add errno handling to PSEUDO. The same for amd64 and
sparc64, with appear to have copied the behavior.
ia64 was correct (as was alpha). Just remove some apparently unused
variants of the macros. (untested!)
I believe powerpc is correct.
Fix arm to not export "name" from the PSEUDO case. Remove apparently
extra unused variants. (untested!)

The errno problem manifested on i386/amd64/sparc64 by having "PSEUDO"
classified syscalls return without setting errno. eg: "addr = mmap()"
could return with "addr" = 22 instead of setting errno to 22 and
returning -1.

Approved by: re (kensmith)


171061 27-Jun-2007 kan

Fix sbrk.S to use _end symbol the same way brk.s was fixed some time
ago. sbrk.S should have gotten the same change then but was forgotten.

Approved by: re (bmah)
PR: kern/114049


170154 31-May-2007 deischen

Some libc symbol map cleanups.

net: endhostdnsent is named _endhostdnsent and is
private to netdb family of functions.

posix1e: acl_size.c has been never compiled in,
so there's no "acl_size".

rpc: "getnetid" is a static function.

stdtime: "gtime" is #ifdef'ed out in the source.

some symbols are specific only to some architectures,
e.g., ___tls_get_addr is only defined on i386.

__htonl, __htons, __ntohl and __ntohs are no longer
functions, they are now (internal) defines in
<machine/endian.h>.

Submitted by: ru


169768 19-May-2007 cognet

Use __mcount() instead of _mcount() to reduce diffs with NetBSD.


169722 19-May-2007 kan

Use built-in _end symbol insteadof 'end' for consistency with other
architectures. Linker defines end is synonym for _end.


169721 19-May-2007 kan

Do not declare float_detect_tininess as external if it will be re-delared
as static later.


169593 16-May-2007 kan

Do not export 'end' symbol. It is not meant to be visible to outside
world and it wreak havoc if libc collides with other versioned
libraries.


169525 13-May-2007 deischen

Remove .mcount from gmon's Symbol map and add it to the appropriate
arch. It can be named differently depending on the arch (.mcount,
_mcount).

Submitted by: marius


169092 29-Apr-2007 deischen

Use C comments since we now preprocess these files with CPP.


165747 03-Jan-2007 das

The distinction between quiet and signaling NaN formats is
machine-dependent; these files tell the latest version of gdtoa
what to do.


164109 09-Nov-2006 cognet

Cleanup: we always have to use __error() now, and we shouldn't provide a
errno symbol, so completely remove the !_REENTRANT case.

Spotted out by: ru


164103 08-Nov-2006 ru

Remove a forgotten file.


164053 06-Nov-2006 cognet

Instead of re-implementing hton[ls] and friends for each arch, add a new MI
file, net/ntoh.c, which just implement them using the inline functions from
<sys/endian.h>.

Suggested by: bde


164051 06-Nov-2006 cognet

Provide definitions suitable for arm big-endian.


161509 21-Aug-2006 cognet

If __ARMEB__ is defined, we're already using the network byte order, so
there's no need to to anything in the hton* functions, beside returning
the parameter.

Spotted out by: Oleksandr Tymoshenko <gonzo@freebsd.org>


158846 23-May-2006 imp

GC old a.out and K&R support.


156613 13-Mar-2006 deischen

Add each directory's symbol map file to SYM_MAPS.


156608 13-Mar-2006 deischen

Add symbol maps and initial symbol version definitions to libc.

Reviewed by: davidxu


150877 03-Oct-2005 cognet

Fix a long line in copyright notice.

Pointed out by: Gavin Atkinson gavin.atkinson ury york ac uk


150875 03-Oct-2005 cognet

Add an asm version of strlen() for arm (how useful).


143858 20-Mar-2005 cognet

Use the correct values for softfloat, in both the little endian and the big
endian cases.


143214 07-Mar-2005 das

Define LDBL_NBIT to be a mask indicating the position of the integer
bit in a long double. For architectures that don't have such a bit,
LDBL_NBIT is 0. This makes it possible to say `mantissa & ~LDBL_NBIT'
in places that previously used an #ifdef to select the right expression.
The optimizer should dispense with the extra arithmetic when LDBL_NBIT
is 0.


141379 06-Feb-2005 das

Update my email address.


140607 22-Jan-2005 das

Replace the ldexp() implementation in libc with a renamed copy of the
scalbn() implementation from libm. (The two functions are defined to
be identical, but ldexp() lives in libc for backwards compatibility.)
The old ldexp() implementation...
- was more complicated than this one
- set errno instead of raising FP exceptions
- got some corner cases wrong
(e.g. ldexp(1.0, 2000) in round-to-zero mode)

The new implementation lives in libc/gen instead of
libc/$MACHINE_ARCH/gen, since we don't need N copies of a
machine-independent file. The amd64 and i386 platforms
retain their fast and correct MD implementations and
override this one.


140279 15-Jan-2005 das

Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc.
The purpose of having a separate file involved an abandoned scheme that
would have kept contrib/gdtoa out of the include path for the rest of libc.


137464 09-Nov-2004 cognet

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.


137461 09-Nov-2004 cognet

Add a week alias __siglongjmp => siglongjmp.


137343 07-Nov-2004 cognet

MFKernel: Implement ffs with clz on Xscale.


137287 05-Nov-2004 cognet

Don't define SOFTFLOAT directly in source files, it's now done in the Makefile.


137286 05-Nov-2004 cognet

Fix signalcontext and makecontext.


137285 05-Nov-2004 cognet

Remove getcontext.S, it is not needed.


137284 05-Nov-2004 cognet

Import a Makefile for arm.


135685 23-Sep-2004 cognet

Make setjmp()/longjmp() use sigprocmask.


135684 23-Sep-2004 cognet

Add a dummy set_tp().


135683 23-Sep-2004 cognet

Always use bx for returning on Xscale.

Obtained from: NetBSD


135682 23-Sep-2004 cognet

Fix the align-to-32-bits code.

Obtained from: NetBSD


132366 18-Jul-2004 das

Replace seven nominally MD implementations of frexp() that are broken
for subnormals with one implementation that works.


131852 09-Jul-2004 das

Implement the classification macros isfinite(), isinf(), isnan(), and
isnormal() the hard way, rather than relying on fpclassify(). This is
a lose in the sense that we need a total of 12 functions, but it is
necessary for binary compatibility because we have never bumped libm's
major version number. In particular, isinf(), isnan(), and isnanf()
were BSD libc functions before they were C99 macros, so we can't
reimplement them in terms of fpclassify() without adding a dependency
on libc.so.5. I have tried to arrange things so that programs that
could be compiled in FreeBSD 4.X will generate the same external
references when compiled in 5.X. At the same time, the new macros
should remain C99-compliant.

The isinf() and isnan() functions remain in libc for historical
reasons; however, I have moved the functions that implement the macros
isfinite() and isnormal() to libm where they belong. Moreover,
half a dozen MD versions of isinf() and isnan() have been replaced
with MI versions that work equally well.

Prodded by: kris


129202 14-May-2004 cognet

Import the FreeBSD/arm libc bits.

Obtained from: NetBSD