Home | History | Annotate | only in /src/lib/libc/arch/powerpc/gen
History log of /src/lib/libc/arch/powerpc/gen
RevisionDateAuthorComments
 1.26 28-Jan-2014  macallan split fabs.c into hardfloat .S and softfloat .c as requested by joerg
 1.25 12-Mar-2011  matt branches: 1.25.4; 1.25.10;
Add PPC TLS support. Add -D_LIBC_SOURCE for tls.c and _lwp.c (powerpc)
so that __lwp_gettcb_fast and __lwp_settcb inlines are define.
 1.24 06-Dec-2009  uebayasi Rename ${SRCS.{alpha,arm,...}.gen} to ${LSRCS.{alpha,arm,...}.gen} because
they ended up in ${LSRCS}, not ${SRCS}. ${SRCS.*} namespace will be used
for more useful things. No functional changes intended.
 1.23 28-Jun-2006  drochner build frexp/ldexp/modf in the "compat" part (code is identical)
(These are the easy cases where no assembler implementations exist.)
 1.22 18-Feb-2006  matt *setjmp14 are not compat, plain setjmp/sigsetjmp are the compat versions.
Exchange the files.
 1.21 18-Feb-2006  matt Move PowerPC compat files from arch/powerpc to compat/arch/powerpc.
 1.20 15-Apr-2005  kleink Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.

IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
 1.19 04-Mar-2004  kleink branches: 1.19.6;
* Turn isinf(3) and isnan(3) into C99-style macros.
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
 1.18 15-Jan-2004  kleink Add C99 fpclassify(), isfinite(), isnormal(), and signbit() macros.
 1.17 23-Nov-2003  scw s/!=/==/

The last fix wasn't quite right, but happened to work for me due
to stale dependencies...

Reported by Markus W Kilbinger.
 1.16 21-Nov-2003  scw Don't compile fp*.c if doing a soft-float build.
 1.15 25-Oct-2003  kleink Add __infinityf and __infinityl, float respectively long double analogs
of __infinity.
 1.14 24-Oct-2003  kleink * Since there is no single portable IEEE 754 format for a long double,
keep a common implementation of isinfl() and isnanl() to be used by
platforms where `long double' == `double'; move others into
machine-dependent code.
* In due course, consider __VFP_FP__ on arm.
 1.13 01-Aug-2003  lukem Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
 1.12 17-May-2003  thorpej Build _isinfl() and _isnanl().
 1.11 12-May-2003  kleink Rename ieee754_function.c to function_ieee754.c, following the convention
used in exec_format.c, loadfile_format.c, subsys_machdep.c etc.
Per discussion with Christos.
 1.10 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.9 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.8 25-May-2001  simonb Handle soft-float case, code from David Querbach of Real-Time Systems Inc.
 1.7 23-Dec-1999  kleink branches: 1.7.6;
C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
 1.6 07-Jul-1999  danw add the ieeefp functions
 1.5 17-Apr-1999  ws Modify syncicache on PowerPC from an inline to a real function.
Support different cache line sizes with the same object code in userland.
While here, move the function to implementation name space.
 1.4 15-Jan-1999  bouyer Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
 1.3 26-Nov-1998  sakamoto Add frexp.c and modf.c.
 1.2 03-Oct-1998  tsubai New signal stuff for PowerPC.
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.7.6.4 22-Mar-2002  nathanw Catch up to -current.
 1.7.6.3 08-Mar-2002  nathanw Catch up to -current.
 1.7.6.2 08-Nov-2001  briggs Build resumecontext.c _lwp.c getcontext.S makecontext.c swapcontext.S
 1.7.6.1 08-Oct-2001  nathanw Catch up to -current.
 1.19.6.1 19-Apr-2005  tron Pull up revision 1.20 (requested by kleink in ticket #163):
Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.
IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
 1.25.10.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6 11-Oct-2023  skrll Consistently pass 0 as first and ignored argument to sigprocmask in the
setjmp implementations.

NFCI.
 1.5 15-Jan-2011  matt Use END(foo) everywhere.
Make __cerror hidden.
Use non-PLT calls to __cerror.
Use assym.h when appropriate.
Use addi to adjust stack instead of loading it.
Add __RCSIDs
Force -D_NOREGNAMES for all .S files.
[this is all in preperation for secure plt support]
 1.4 18-Feb-2006  matt *setjmp14 are not compat, plain setjmp/sigsetjmp are the compat versions.
Exchange the files.
 1.3 18-Feb-2006  matt Move PowerPC compat files from arch/powerpc to compat/arch/powerpc.
 1.2 30-Jul-2002  matt Convert to use register prefixes. (0 -> %r0, etc.)
 1.1 03-Oct-1998  tsubai branches: 1.1.12; 1.1.14;
New signal stuff for PowerPC.
 1.1.14.1 23-Jul-2004  tron Pull up revision 1.2 (requested by skrll in ticket #1725):
Convert to use register prefixes. (0 -> %r0, etc.)
 1.1.12.1 01-Aug-2002  nathanw Catch up to -current.
 1.6 11-Oct-2023  skrll Consistently pass 0 as first and ignored argument to sigprocmask in the
setjmp implementations.

NFCI.
 1.5 15-Jan-2011  matt Use END(foo) everywhere.
Make __cerror hidden.
Use non-PLT calls to __cerror.
Use assym.h when appropriate.
Use addi to adjust stack instead of loading it.
Add __RCSIDs
Force -D_NOREGNAMES for all .S files.
[this is all in preperation for secure plt support]
 1.4 18-Feb-2006  matt *setjmp14 are not compat, plain setjmp/sigsetjmp are the compat versions.
Exchange the files.
 1.3 18-Feb-2006  matt Move PowerPC compat files from arch/powerpc to compat/arch/powerpc.
 1.2 30-Jul-2002  matt Convert to use register prefixes. (0 -> %r0, etc.)
 1.1 03-Oct-1998  tsubai branches: 1.1.12; 1.1.14;
New signal stuff for PowerPC.
 1.1.14.1 23-Jul-2004  tron Pull up revision 1.2 (requested by skrll in ticket #1725):
Convert to use register prefixes. (0 -> %r0, etc.)
 1.1.12.1 01-Aug-2002  nathanw Catch up to -current.
 1.9 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.8 22-Jun-2020  rin branches: 1.8.8;
Turn on _UC_TLSBASE for sure in the same manner as other ports.
No functional changes since that flag is turned on via getcontext(2).
 1.7 22-Mar-2012  matt Make lint happy.
While here, make sure the top of stack is aligned properly.
 1.6 12-Mar-2011  matt branches: 1.6.4;
Add PPC TLS support. Add -D_LIBC_SOURCE for tls.c and _lwp.c (powerpc)
so that __lwp_gettcb_fast and __lwp_settcb inlines are define.
 1.5 24-Feb-2011  joerg Allow storing and receiving the LWP private pointer via ucontext_t
on all platforms except VAX and IA64. Add fast access via register for
AMD64, i386 and SH3 ports. Use this fast access in libpthread to replace
the stack based pthread_self(). Implement skeleton support for Alpha,
HPPA, PowerPC, SPARC and SPARC64, but leave it disabled.

Ports that support this feature provide __HAVE____LWP_GETPRIVATE_FAST in
machine/types.h and a corresponding __lwp_getprivate_fast in
machine/mcontext.h.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.4 12-Jun-2005  lukem branches: 1.4.40;
Add missing __RCSID()
 1.3 07-Apr-2003  kleink Make sure we reference getcontext() by its internal name.
 1.2 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 08-Nov-2001  briggs branches: 1.1.2;
file _lwp.c was initially added on branch nathanw_sa.
 1.1.2.1 08-Nov-2001  briggs _lwp_makecontext()
 1.4.40.1 05-Mar-2011  bouyer Sync with HEAD
 1.6.4.1 17-Apr-2012  yamt sync with head
 1.8.8.1 02-Aug-2025  perseant Sync with HEAD
 1.3 15-Jan-2011  matt Use END(foo) everywhere.
Make __cerror hidden.
Use non-PLT calls to __cerror.
Use assym.h when appropriate.
Use addi to adjust stack instead of loading it.
Add __RCSIDs
Force -D_NOREGNAMES for all .S files.
[this is all in preperation for secure plt support]
 1.2 30-Jul-2002  matt Convert to use register prefixes. (0 -> %r0, etc.)
 1.1 29-Mar-1997  thorpej branches: 1.1.14; 1.1.16;
Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.1.16.1 23-Jul-2004  tron Pull up revision 1.2 (requested by skrll in ticket #1725):
Convert to use register prefixes. (0 -> %r0, etc.)
 1.1.14.1 01-Aug-2002  nathanw Catch up to -current.
 1.3 25-May-2001  simonb Handle soft-float case, code from David Querbach of Real-Time Systems Inc.
 1.2 25-May-1998  ws branches: 1.2.12;
Remove long obsolete copyright (should have been done before initial import)
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.2.12.1 08-Oct-2001  nathanw Catch up to -current.
 1.5 28-Jan-2014  macallan split fabs.c into hardfloat .S and softfloat .c as requested by joerg
 1.4 24-Dec-2005  perry branches: 1.4.44; 1.4.50;
__asm__ -> __asm
 1.3 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.2 25-May-2001  tsubai branches: 1.2.2;
Correct input and output of asm.
 1.1 25-May-2001  simonb Handle soft-float case, code from David Querbach of Real-Time Systems Inc.
 1.2.2.2 08-Oct-2001  nathanw Catch up to -current.
 1.2.2.1 25-May-2001  nathanw file fabs.c was added on branch nathanw_sa on 2001-10-08 20:17:54 +0000
 1.4.50.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.44.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 07-Nov-2018  riastradh On ports without __HAVE_LONG_DOUBLE, make fabsl alias fabs.

For some reason, fabs lives in libc, not in libm, and our tests now
detect when fabs or fabsl is missing from libm. For those ports that
sometimes have long double and sometimes don't, make it conditional.

Still missing: fabs _and_ fabsl on ia64. Need help from an itanium
wizard! Other portmasters: Please take a look and see if I missed
any ports that might have long double where this alias will not work.
 1.1 28-Jan-2014  macallan branches: 1.1.4; 1.1.8; 1.1.28; 1.1.30;
split fabs.c into hardfloat .S and softfloat .c as requested by joerg
 1.1.30.1 10-Jun-2019  christos Sync with HEAD
 1.1.28.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.8.1 28-Jan-2014  tls file fabs_ieee754.S was added on branch tls-maxphys on 2014-08-20 00:02:11 +0000
 1.1.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1 28-Jan-2014  yamt file fabs_ieee754.S was added on branch yamt-pagecache on 2014-05-22 11:36:48 +0000
 1.2 28-Jan-2014  macallan no need to duplicate the generic fabs_ieee754.c here
 1.1 28-Jan-2014  macallan split fabs.c into hardfloat .S and softfloat .c as requested by joerg
 1.12 19-Mar-2015  joerg Call libc's fpgetround.
 1.11 10-Jul-2011  matt branches: 1.11.20;
Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.10 24-Dec-2005  perry __asm__ -> __asm
 1.9 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.8 12-Jun-2005  lukem Add missing __RCSID()
 1.7 04-Apr-2004  matt Suppress a lint warning.
 1.6 22-Feb-2002  kleink Do without stfiwx; per PEM32 Rev. 1 it's an optional part of the UISA,
and not implemented on the 601.
 1.5 25-May-2001  simonb Handle soft-float case, from the arm flt_rounds.c.
 1.4 07-Jul-1999  danw branches: 1.4.10;
mark an asm statement volatile so it doesn't get optimized out
 1.3 09-Aug-1998  tsubai s/asm/__asm/
 1.2 03-Feb-1998  mycroft Need float.h for prototypes.
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.4.10.3 22-Mar-2002  nathanw Catch up to -current.
 1.4.10.2 08-Mar-2002  nathanw Catch up to -current.
 1.4.10.1 08-Oct-2001  nathanw Catch up to -current.
 1.11.20.1 21-Mar-2015  snj Pull up following revision(s) (requested by joerg in ticket #632):
lib/libc/arch/arm/gen/flt_rounds.c: revision 1.5
lib/libc/arch/mips/gen/flt_rounds.c: revision 1.9
lib/libc/arch/powerpc/gen/flt_rounds.c: revision 1.12
lib/libc/arch/powerpc64/gen/flt_rounds.c: revision 1.2
lib/libc/arch/sh3/gen/flt_rounds.c: revision 1.6
Call libc's fpgetround.
 1.10 10-Jul-2011  matt Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.9 28-Apr-2008  martin branches: 1.9.8;
Remove clause 3 and 4 from TNF licenses
 1.8 24-Dec-2005  perry branches: 1.8.18;
__asm__ -> __asm
 1.7 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 04-Apr-2004  matt Supress a few lint warnings. s/u_int64_t/uint64_t/
 1.4 02-Apr-2004  matt Rather than use magic values, include <powerpc/fpu.h> and use those
definitions to generate the magic bits.
 1.3 13-Jan-2002  thorpej Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
 1.2 08-Feb-2001  wiz branches: 1.2.2;
Add some casts to make lint shut up. Reviewed by christos.
 1.1 07-Jul-1999  danw add the ieeefp functions
 1.2.2.1 28-Jan-2002  nathanw Catch up to -current.
 1.8.18.1 18-May-2008  yamt sync with head.
 1.9.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9.8.1 28-Apr-2008  martin file fpgetmask.c was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.10 10-Jul-2011  matt Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.9 28-Apr-2008  martin branches: 1.9.8;
Remove clause 3 and 4 from TNF licenses
 1.8 24-Dec-2005  perry branches: 1.8.18;
__asm__ -> __asm
 1.7 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 04-Apr-2004  matt Supress a few lint warnings. s/u_int64_t/uint64_t/
 1.4 02-Apr-2004  matt Rather than use magic values, include <powerpc/fpu.h> and use those
definitions to generate the magic bits.
 1.3 13-Jan-2002  thorpej Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
 1.2 08-Feb-2001  wiz branches: 1.2.2;
Add some casts to make lint shut up. Reviewed by christos.
 1.1 07-Jul-1999  danw add the ieeefp functions
 1.2.2.1 28-Jan-2002  nathanw Catch up to -current.
 1.8.18.1 18-May-2008  yamt sync with head.
 1.9.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9.8.1 28-Apr-2008  martin file fpgetround.c was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.10 10-Jul-2011  matt Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.9 28-Apr-2008  martin branches: 1.9.8;
Remove clause 3 and 4 from TNF licenses
 1.8 24-Dec-2005  perry branches: 1.8.18;
__asm__ -> __asm
 1.7 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 04-Apr-2004  matt Supress a few lint warnings. s/u_int64_t/uint64_t/
 1.4 02-Apr-2004  matt Rather than use magic values, include <powerpc/fpu.h> and use those
definitions to generate the magic bits.
 1.3 13-Jan-2002  thorpej Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
 1.2 08-Feb-2001  wiz branches: 1.2.2;
Add some casts to make lint shut up. Reviewed by christos.
 1.1 07-Jul-1999  danw add the ieeefp functions
 1.2.2.1 28-Jan-2002  nathanw Catch up to -current.
 1.8.18.1 18-May-2008  yamt sync with head.
 1.9.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9.8.1 28-Apr-2008  martin file fpgetsticky.c was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.11 27-Feb-2017  chs have fpsetmask() change the FE0/FE1 MSR bits to precise mode if any
FP exceptions are enabled. fix the kernel emulation of mfmsr and mtmsr
to use the correct opcodes for these instructions. ignore PSL_FE
(the FP enable bit) in the MSR that a user program tries to set,
since it will naturally be set for FP-using processes but
we can't let the user process manage that bit.
 1.10 10-Jul-2011  matt branches: 1.10.24; 1.10.28;
Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.9 28-Apr-2008  martin branches: 1.9.8;
Remove clause 3 and 4 from TNF licenses
 1.8 24-Dec-2005  perry branches: 1.8.18;
__asm__ -> __asm
 1.7 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 04-Apr-2004  matt Lint cleanup. s/u_int64_t/uint64_t
 1.4 02-Apr-2004  matt Rather than use magic values, include <powerpc/fpu.h> and use those
definitions to generate the magic bits.
 1.3 13-Jan-2002  thorpej Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
 1.2 08-Feb-2001  wiz branches: 1.2.2;
Add some casts to make lint shut up. Reviewed by christos.
 1.1 07-Jul-1999  danw add the ieeefp functions
 1.2.2.1 28-Jan-2002  nathanw Catch up to -current.
 1.8.18.1 18-May-2008  yamt sync with head.
 1.9.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9.8.1 28-Apr-2008  martin file fpsetmask.c was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.10.28.1 21-Apr-2017  bouyer Sync with HEAD
 1.10.24.1 20-Mar-2017  pgoyette Sync with HEAD
 1.10 10-Jul-2011  matt Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.9 28-Apr-2008  martin branches: 1.9.8;
Remove clause 3 and 4 from TNF licenses
 1.8 24-Dec-2005  perry branches: 1.8.18;
__asm__ -> __asm
 1.7 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 04-Apr-2004  matt Lint cleanup. s/u_int64_t/uint64_t
 1.4 02-Apr-2004  matt Rather than use magic values, include <powerpc/fpu.h> and use those
definitions to generate the magic bits.
 1.3 13-Jan-2002  thorpej Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
 1.2 08-Feb-2001  wiz branches: 1.2.2;
Add some casts to make lint shut up. Reviewed by christos.
 1.1 07-Jul-1999  danw add the ieeefp functions
 1.2.2.1 28-Jan-2002  nathanw Catch up to -current.
 1.8.18.1 18-May-2008  yamt sync with head.
 1.9.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9.8.1 28-Apr-2008  martin file fpsetround.c was added on branch christos-time_t on 2008-04-28 20:22:58 +0000
 1.11 10-Jul-2011  matt Don't use "f" with non-fp types. Use a union to go between
double and uint64_t. Makes clang happy.
 1.10 28-Apr-2008  martin branches: 1.10.8;
Remove clause 3 and 4 from TNF licenses
 1.9 24-Dec-2005  perry branches: 1.9.18;
__asm__ -> __asm
 1.8 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.7 12-Jun-2005  lukem Add missing __RCSID()
 1.6 04-Apr-2004  matt Update FPSCR_FX consistently per the Programming Environment Manual. So
if any sticky bit is set, FPSCR_FX should be set. If no sticky bits are
set, then FPSCR_FX should be clear.
 1.5 04-Apr-2004  matt Deal with the way FP_X_INV works. That maps to FPSCR_VX. However FPSCR_VX
is not a sticky, it's actually an inclusive OR of 9 stick bits. So when
FP_X_INV is cleared, we need to clear all of those bits. When FP_X_INV is
set, we set all of them.
 1.4 02-Apr-2004  matt Rather than use magic values, include <powerpc/fpu.h> and use those
definitions to generate the magic bits.
 1.3 13-Jan-2002  thorpej Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
 1.2 08-Feb-2001  wiz branches: 1.2.2;
Add some casts to make lint shut up. Reviewed by christos.
 1.1 07-Jul-1999  danw add the ieeefp functions
 1.2.2.1 28-Jan-2002  nathanw Catch up to -current.
 1.9.18.1 18-May-2008  yamt sync with head.
 1.10.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.10.8.1 28-Apr-2008  martin file fpsetsticky.c was added on branch christos-time_t on 2008-04-28 20:22:58 +0000
 1.5 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.4 29-Aug-1999  mycroft branches: 1.4.10;
Trivial KNF.
 1.3 29-Aug-1999  mycroft Make the C version of frexp() consitent across platforms, and handle the
Inf/NaN case.
 1.2 10-Mar-1999  mycroft Use ieee.h structs and macros.
 1.1 26-Nov-1998  sakamoto Add frexp.c and modf.c.
 1.4.10.1 08-Mar-2002  nathanw Catch up to -current.
 1.1 08-Nov-2001  briggs branches: 1.1.2;
file getcontext.S was initially added on branch nathanw_sa.
 1.1.2.2 09-Nov-2001  briggs As pointed out by Klaus Klein <kleink@netbsd.org> in private email,
getcontext.S should live in sys as it is a userland wrapper around
the actual syscall.
 1.1.2.1 08-Nov-2001  briggs get/make/swap/resumecontext() from Klaus Klein <kleink@netbsd.org>
 1.6 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.5 13-Sep-2000  msaitoh branches: 1.5.2;
check LIBC_SCCS
 1.4 14-Nov-1998  christos delint
 1.3 26-Jul-1998  mycroft const poisoning.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.5.2.1 08-Mar-2002  nathanw Catch up to -current.
 1.7 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.6 22-Jan-2000  mycroft branches: 1.6.6;
Delint.
 1.5 29-Aug-1999  mycroft Separate isnan() into a separate module, and make isinf()/isnan() use ieee.h.
 1.4 14-Nov-1998  christos delint
 1.3 13-Oct-1998  kleink Need internal names for isinf() and isnan().
 1.2 13-Jul-1997  christos Add missing math.h include
Fix RCSID's
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.6.6.1 08-Mar-2002  nathanw Catch up to -current.
 1.6 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.5 22-Jan-2000  mycroft branches: 1.5.6;
Delint.
 1.4 29-Aug-1999  mycroft Separate isnan() into a separate module, and make isinf()/isnan() use ieee.h.
 1.3 13-Oct-1998  kleink Need internal names for isinf() and isnan().
 1.2 13-Jul-1997  christos Fix RCSID's
Add missing math.h include
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.5.6.1 08-Mar-2002  nathanw Catch up to -current.
 1.11 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.10 07-Nov-2001  mjl fix for -Wshadow
 1.9 30-Aug-1999  mycroft branches: 1.9.10;
Another microoptimization. Take advantage of the addition already having set
the flags for the <=0 comparison.
 1.8 30-Aug-1999  mycroft Reuse the trick of loading 0.0 (rather than 1.0) and then modifying the
exponent. It's a bit faster on some machines.
 1.7 30-Aug-1999  augustss Remove more unused mulexp variables.
 1.6 29-Aug-1999  mycroft ldexp(denormal, exp>1023) would generate the wrong result in all non-overflow
cases. Totally rework this code to fix this bug *and* make it faster.
 1.5 29-Aug-1999  mycroft Don't ever return -0.0.
 1.4 29-Aug-1999  mycroft Minor style change.
 1.3 10-Mar-1999  mycroft Just some minor cleanup.
 1.2 13-Jul-1997  christos Fix RCSID's
Add missing math.h include
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.9.10.2 08-Mar-2002  nathanw Catch up to -current.
 1.9.10.1 14-Nov-2001  nathanw Catch up to -current.
 1.4 28-Apr-2008  martin branches: 1.4.8;
Remove clause 3 and 4 from TNF licenses
 1.3 09-Oct-2003  kleink branches: 1.3.30;
Update to use symbolic register names.
 1.2 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 08-Nov-2001  briggs branches: 1.1.2;
file makecontext.c was initially added on branch nathanw_sa.
 1.1.2.2 17-Nov-2001  briggs Update comments.
 1.1.2.1 08-Nov-2001  briggs get/make/swap/resumecontext() from Klaus Klein <kleink@netbsd.org>
 1.3.30.1 18-May-2008  yamt sync with head.
 1.4.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4.8.1 28-Apr-2008  martin file makecontext.c was added on branch christos-time_t on 2008-04-28 20:22:58 +0000
 1.5 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.4 09-Feb-2001  wiz branches: 1.4.2;
De-lint. Reviewed by christos.
 1.3 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.2 13-Mar-2000  soren branches: 1.2.2;
Fix doubled 'the's.
 1.1 26-Nov-1998  sakamoto Add frexp.c and modf.c.
 1.2.2.1 23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.4.2.1 08-Mar-2002  nathanw Catch up to -current.
 1.4 22-Feb-2009  martin Make NAN a compile time constant (with help from the compiler). Suggested
by krister. Fixes PR 40695.
Make references to the old construct (which we can't remove for binary
compatibility reasons) emit a linker warning.
 1.3 15-Apr-2005  kleink branches: 1.3.2; 1.3.32;
Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.

IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
 1.2 19-Feb-2002  simonb Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
 1.1 23-Dec-1999  kleink branches: 1.1.6;
C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
 1.1.6.1 08-Mar-2002  nathanw Catch up to -current.
 1.3.32.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.3.2.2 19-Apr-2005  tron Pull up revision 1.3 (requested by kleink in ticket #163):
Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.
IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
 1.3.2.1 15-Apr-2005  tron file nanf.c was added on branch netbsd-3 on 2005-04-19 12:30:50 +0000
 1.5 19-Sep-2011  joerg Mark _resumecontext as dead. ANSIfy all declarations for it.
 1.4 28-Apr-2008  martin branches: 1.4.8;
Remove clause 3 and 4 from TNF licenses
 1.3 08-Dec-2006  martin branches: 1.3.10;
Sync all resumecontext.c versions with the changes originally made
by Matthias Drochner to i386 and alpha:

-check for a NULL uc_link before calling setcontext(2); do a real exit(3)
instead with exit handlers and all that
-If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
than relying on a sensible return value to use as exit code. Makes
it less likely that an ucontext corruption goes unnoticed.
 1.2 18-Jan-2003  thorpej branches: 1.2.16;
Merge the nathanw_sa branch.
 1.1 08-Nov-2001  briggs branches: 1.1.2;
file resumecontext.c was initially added on branch nathanw_sa.
 1.1.2.1 08-Nov-2001  briggs get/make/swap/resumecontext() from Klaus Klein <kleink@netbsd.org>
 1.2.16.1 09-Dec-2006  bouyer Pull up following revision(s) (requested by martin in ticket #264):
lib/libc/arch/sh5/gen/resumecontext.c: revision 1.2
lib/libc/arch/sh3/gen/resumecontext.c: revision 1.3
lib/libc/arch/sparc/gen/resumecontext.c: revision 1.3
lib/libc/arch/powerpc/gen/resumecontext.c: revision 1.3
lib/libc/arch/arm/gen/resumecontext.c: revision 1.3
lib/libc/arch/mips/gen/resumecontext.c: revision 1.3
lib/libc/arch/vax/gen/resumecontext.c: revision 1.2
lib/libc/arch/powerpc64/gen/resumecontext.c: revision 1.2
lib/libc/arch/hppa/gen/resumecontext.c: revision 1.2
Sync all resumecontext.c versions with the changes originally made
by Matthias Drochner to i386 and alpha:
-check for a NULL uc_link before calling setcontext(2); do a real exit(3)
instead with exit handlers and all that
-If setcontext(2) returns (which it shouldn't), do an _exit(-1) rather
than relying on a sensible return value to use as exit code. Makes
it less likely that an ucontext corruption goes unnoticed.
 1.3.10.1 18-May-2008  yamt sync with head.
 1.4.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4.8.1 28-Apr-2008  martin file resumecontext.c was added on branch christos-time_t on 2008-04-28 20:22:58 +0000
 1.5 18-Feb-2006  matt *setjmp14 are not compat, plain setjmp/sigsetjmp are the compat versions.
Exchange the files.
 1.4 30-Jul-2002  matt Convert to use register prefixes. (0 -> %r0, etc.)
 1.3 03-Oct-1998  tsubai branches: 1.3.12; 1.3.14;
New signal stuff for PowerPC.
 1.2 25-May-1998  ws Remove long obsolete copyright (should have been done before initial import)
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.3.14.1 23-Jul-2004  tron Pull up revision 1.4 (requested by skrll in ticket #1725):
Convert to use register prefixes. (0 -> %r0, etc.)
 1.3.12.1 01-Aug-2002  nathanw Catch up to -current.
 1.7 18-Feb-2006  matt *setjmp14 are not compat, plain setjmp/sigsetjmp are the compat versions.
Exchange the files.
 1.6 09-Aug-2002  briggs Add a missing register prefix, noted by Makoto Fujiwara on the port-macppc
mailing list.
 1.5 30-Jul-2002  matt Convert to use register prefixes. (0 -> %r0, etc.)
 1.4 03-Oct-1998  tsubai branches: 1.4.12; 1.4.14;
New signal stuff for PowerPC.
 1.3 02-Jul-1998  tsubai Add #include <sys/syscall.h> for "SYS_sigprocmask".
 1.2 25-May-1998  ws Remove long obsolete copyright (should have been done before initial import)
 1.1 29-Mar-1997  thorpej Architecture-specific bits for libc on the PowerPC. From Wolfgang
Solfrank <ws@tools.de>
 1.4.14.1 23-Jul-2004  tron Pull up revision 1.5 (requested by skrll in ticket #1725):
Convert to use register prefixes. (0 -> %r0, etc.)
 1.4.12.2 13-Aug-2002  nathanw Catch up to -current.
 1.4.12.1 01-Aug-2002  nathanw Catch up to -current.
 1.8 28-Feb-2018  uwe PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
 1.7 12-Sep-2013  joerg branches: 1.7.4; 1.7.18;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.6 16-Jan-2011  matt branches: 1.6.6; 1.6.8; 1.6.12;
Switch to the PIC_GOTSETUP/PIC_TOCSETUP macros for PIC code. Now libc
will be built to use secureplt by default.
 1.5 15-Jan-2011  matt Use END(foo) everywhere.
Make __cerror hidden.
Use non-PLT calls to __cerror.
Use assym.h when appropriate.
Use addi to adjust stack instead of loading it.
Add __RCSIDs
Force -D_NOREGNAMES for all .S files.
[this is all in preperation for secure plt support]
 1.4 28-Apr-2008  martin branches: 1.4.8;
Remove clause 3 and 4 from TNF licenses
 1.3 03-Oct-2003  kleink branches: 1.3.30;
Convert to use register prefixes.
 1.2 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 08-Nov-2001  briggs branches: 1.1.2;
file swapcontext.S was initially added on branch nathanw_sa.
 1.1.2.1 08-Nov-2001  briggs get/make/swap/resumecontext() from Klaus Klein <kleink@netbsd.org>
 1.3.30.1 18-May-2008  yamt sync with head.
 1.4.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4.8.1 28-Apr-2008  martin file swapcontext.S was added on branch christos-time_t on 2008-04-28 20:22:58 +0000
 1.6.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.8.1 13-Mar-2018  snj Pull up following revision(s) (requested by uwe in ticket #1534):
lib/libc/arch/powerpc/genassym.cf: 1.5 via patch
lib/libc/arch/powerpc/gen/swapcontext.S: 1.8 via patch
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
 1.6.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.18.1 01-Mar-2018  martin Pull up following revision(s) (requested by uwe in ticket #596):
lib/libc/arch/powerpc/genassym.cf: revision 1.5
lib/libc/arch/powerpc/gen/swapcontext.S: revision 1.8
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
(oops, forgot to commit this along with swapcontext.S)
 1.7.4.1 03-Mar-2018  snj Pull up following revision(s) (requested by uwe in ticket #1576):
lib/libc/arch/powerpc/genassym.cf: 1.8 1.5
lib/libc/arch/powerpc/gen/swapcontext.S: 1.8
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
 1.15 18-Mar-2008  he When compiling for _STANDALONE, omit a bunch of headers which aren't really
needed and which trigger build problems.

(These two files should probably be unified and put under common/...)
 1.14 24-Dec-2005  perry branches: 1.14.10; 1.14.16;
__asm__ -> __asm
 1.13 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.12 11-Aug-2003  matt export size_t __getcachelinesize(void) for memset()
 1.11 26-Nov-2002  thorpej Need <stdlib.h> for abort() prototype.
 1.10 28-Mar-2002  matt Add sync before isync since the MPC74xx require it.
 1.9 26-Mar-2002  matt Use size_t in prototype (so this will be LP64 clean for PPC64 someday).
Calculate len separately for icache & dcache in case each has different
cacheline widths. Make the code for both loops the same except for the
dcbst/icbi. Deal with sizes >=2GB properly (like that'll happen but ...)
 1.8 18-Mar-2002  dbj make compile with _STANDALONE
 1.7 13-Mar-2002  eeh Remove leftover debug code. Oops.
 1.6 12-Mar-2002  eeh Use new CPU_CACHEINFO sysctl to get more detailed information about
cache layout.
 1.5 27-Aug-2001  matt Ansi'fy. (to make this compile under -Wstrict-prototypes)
 1.4 26-Jan-2001  wiz branches: 1.4.2;
delint (variable is only used for size, so make if size_t instead of int).
 1.3 29-Jun-2000  mrg sync with libkern version; <vm/vm.h> -> <uvm/uvm_extern.h>
 1.2 05-May-1999  tsubai * Add getcachelinesize() prototype.
* Make this compile with -D_STANDALONE.
 1.1 17-Apr-1999  ws Modify syncicache on PowerPC from an inline to a real function.
Support different cache line sizes with the same object code in userland.
While here, move the function to implementation name space.
 1.4.2.4 10-Dec-2002  thorpej Sync with HEAD.
 1.4.2.3 25-Apr-2002  nathanw Catch up to -current.
 1.4.2.2 22-Mar-2002  nathanw Catch up to -current.
 1.4.2.1 08-Oct-2001  nathanw Catch up to -current.
 1.14.16.1 24-Mar-2008  keiichi sync with head.
 1.14.10.1 23-Mar-2008  matt sync with HEAD

RSS XML Feed