summaryrefslogtreecommitdiff
path: root/lib/libc/arch/sh3
AgeCommit message (Collapse)Author
2022-04-08fix various typos, mainly in comments, but also log messages, docs, game text.andvar
2021-11-24Decorate the SuperH signal trampoline with the appropriate .cfithorpej
directives to allow exception unwind / backtrace across a signal handler.
2021-10-31Tidy up how __sigaction14_sigtramp.c is added to SRCS.thorpej
2021-10-26Merge all MD __sigaction14_sigtramp.c copies into one:christos
- sparc and sparc64 were not using version 0 sigcontext when there were no arguments in the signal version. This was probably a bug. - vax is using +1 the version numbers of the other archs. - Only hppa was defining __LIBC12_SOURCE__ so it was getting a working sigcontext before. all the other ports that supported sigcontext had the compat code disabled. [pointed out by thorpej, thanks!] If we want to remove sigcontext support from userland at least now there is less work to do so.
2020-10-15Trailing whitespaceskrll
2020-04-18Rename "syscall" to "_syscall" and provide "syscall" as a weak alias.thorpej
2017-03-22provide a common softfloat fenv implemenation and use it for softfloat builds.chs
restore ABI compatibility with previous releases for ieeefp.h on sh3. add namespace.h protection for all the fenv interfaces. use MKSOFTFLOAT on sh3 instead of assuming softfloat. standardize on comparing MKSOFTFLOAT with "no". remove the arm-specific softfloat fenv code (which also had several bugs). fix logic errors in the arm hardfloat feraiseexcept() and feupdateenv().
2017-03-11fix the mapping table. this sh3 version was originally copied from arm,chs
but FP_RP and FP_RM have opposite values on sh3 vs. arm.
2017-02-07Mark exect(3) obsolete and bind it to plain execve(2) on all platformskamil
The original exect(2) from BSD4.2 was enabling bit for tracing (single-step mode) and calling execve(2). The purpose of it was to generate a signal for a tracer once the application will change its image to a new program. This approach no longer works as: - exect(2) traces (single-steps) libc and it requires hundreds or thousands steps before entering a new image - it's vax and x86 specific code - this functionality has been moved to the kernel - once a process is traced it will generate SIGTRAP with si_code TRAP_EXEC and route it to its debugger - the side effects and unportability make this interface unusable - there are no known users of this interface - it apparently never worked better since day0 of NetBSD ("day0 bug") Users are requested to move to other execve(2) variants. Calling current execve(2) as it is the most similar behavior to this one from BSD4.2. Discussed several times on mailing lists and in PR/51700. Add warning to exect(3) telling about marking this function obsolete. This function is prepared to be removed in next libc major bump. Sponsored by <The NetBSD Foundation>
2015-04-06On swapcontext(3) preserve r12 too. Properly fixes PR port-sh3/49597.uwe
2015-03-19Call libc's fpgetround.joerg
2015-01-25Adjust _UC_MACHINE_SP(oucp) to "drop" values we pushed to the stack.uwe
t_swapcontext tests pass now with gcc 4.8. From Yasushi Oshima in PR port-sh3/49597
2014-01-20Use fabs_ieee754.c.joerg
2013-09-12Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is smalljoerg
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2012-03-22Follow the pattern from powerpc, make lint happy.he
2012-03-22Add a void to make function declaration c89.he
2011-09-19Mark _resumecontext as dead. ANSIfy all declarations for it.joerg
2011-07-07Don't define a new enum. Just #define round_* to their FP_Rx instead.matt
2011-07-04Add __floatunsidf __floatunsisf __floatunsitf routines.matt
XXX i think they are correct but not sure.
2011-02-24Allow storing and receiving the LWP private pointer via ucontext_tjoerg
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.
2011-01-23Correctly define inta using a helper macro for the #joerg
2009-12-06Rename ${SRCS.{alpha,arm,...}.gen} to ${LSRCS.{alpha,arm,...}.gen} becauseuebayasi
they ended up in ${LSRCS}, not ${SRCS}. ${SRCS.*} namespace will be used for more useful things. No functional changes intended.
2009-07-31Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.dsl
Change the arch files only include the .S files. This adds imaxdiv() to some archs where it was missing.
2009-07-30If SRCS contains any .S files then remove the corresponding .c file fromdsl
SRCS and add to LSRCS (for lint). Change the 'string' Makefiles so that the arch/*/string/Makefile.inc need only specify the .S files for that architecture and not the .c files for all the files they don't override.
2009-07-18Remove references to index.c and rindex.c (strchr.c and strrchr.cdsl
now provide the definitions).
2009-02-22Make NAN a compile time constant (with help from the compiler). Suggestedmartin
by krister. Fixes PR 40695. Make references to the old construct (which we can't remove for binary compatibility reasons) emit a linker warning.
2008-08-04Add C99 functions imaxabs and imaxdiv.matt
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-01-17Remove more duplicate #includes, and a few spurious whitespaces at EOLhubertf
From Slava Semushin <slava.semushin@gmail.com>
2006-12-08Sync all resumecontext.c versions with the changes originally mademartin
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.
2006-06-28build frexp/ldexp/modf in the "compat" part (code is identical)drochner
(These are the easy cases where no assembler implementations exist.)
2006-06-17G/c KMSRCS and KMINCLUDES now that we have common/lib/libcuwe
2006-06-02remove GCC2 supportmrg
2006-05-21add a local prototype for fabs()mrg
2006-05-18change __weak_extern to __weak_reference so that gcc4 works.christos
2006-05-16if SOFTFLOAT_FOR_GCC is not defined, don't declare float_detect_tininess.mrg
2006-04-23Now that bcopy.S doesn't contain the actual implemenation, move ituwe
back to libc.
2006-04-07retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4.mrg
2006-03-22build erand48_ieee754.c on everything but vaxdrochner
2006-03-15Add strtof(3) and strtold(3); welcome libc 12.137.kleink
2006-02-25Fix some typos.wiz
2006-02-19make these consistent.christos
2006-01-25Add machine-dependent definitions for gdtoa.kleink
2006-01-06Provide _REENTRANT version of errno = 0;uwe
2006-01-06Use JUMP_CERROR instead of messing with errno directly.uwe
Simplify.
2006-01-06Drop unnecessary nops.uwe
2006-01-06Simplify.uwe
2006-01-06Change !_REENTRANT && !PIC case to use r4 too.uwe
2006-01-06Open code _SYSCALL_NOERROR to shave off a memory load and a branch.uwe
Makes this congruent to vforks. Add .size directive.
2006-01-06Add .size directive.uwe