summaryrefslogtreecommitdiff
path: root/lib/librthread/arch
AgeCommit message (Collapse)Author
2013-02-02Userland bits for m68k/ELF. Mostly addition of register prefixes to theMiod Vallat
assembler instructions, and cope with the few changes in return values location.
2013-01-27Make this PIC-aware.Miod Vallat
2013-01-23ARMv7 doesn't support the atomic SWP instruction anymore. Use the atomicPatrick Wildt
load and store instructions instead. ok miod@
2013-01-11Add END() directives to the various functions.Miod Vallat
Make the code PIC-aware when necessary (i.e. invoke other functions through the PLT, and access global data through the GOT). No change for non-PIC compilation.
2013-01-05Switch m88k ports to ELF.Miod Vallat
2012-08-22Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccPascal Stumpf
invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
2012-04-13Provide _atomic_lock() and __cerror() for hppa64. Makes hppa64 build again.Joel Sing
2012-03-22tfork_thread has been moved to libcPhilip Guenthe
2012-03-03Sync the assembly statements with <machine/lock.h> for consistency.Miod Vallat
2012-02-27fix __errno symbol nameMiod Vallat
2012-02-26Fix buglets.Miod Vallat
2012-02-26__cerror gets invoked with errno in v0, not a0.Miod Vallat
2012-02-26Fix label for threaded binaries to link.Miod Vallat
2012-02-18Missing cerror bits.Miod Vallat
2012-02-17Allow librthread to build on mips64.Miod Vallat
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
particularly the "consume the signal you just sent" hang, and putting the wait queues in userspace. Do cancellation handling in pthread_cond_*wait(), pthread_join(), and sem_wait(). Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add 'abort" argument to thrsleep to close cancellation race; make thr{sleep,wakeup} return errno values via *retval to avoid touching userspace errno.
2011-11-09Add the __cerror asm bits for per-thread errno support for powerpc.Mark Kettenis
ok guenther@
2011-11-08Add the __cerror asm bits for per-thread errno support for hppa.Mark Kettenis
ok guenther@
2011-10-17Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-threadPhilip Guenthe
errno. The ASM bits for _cerror are sketchy or missing for some archs but that can be corrected in-tree.
2011-10-13Deal with the horror that is gcc asm constraints by copying thePhilip Guenthe
known good version of ldstub in the kernel. (It's finally in, aja!) ok kettenis@
2011-10-13Increase the stack offset for the new rthread from (BIAS+128) toPhilip Guenthe
(BIAD+CC64FSZ) so that there's sufficient space even when _rthread_start is compiled without optimization. Also, clear the frame pointer to help make gdb happier. ok kettenis@
2011-10-13Convert rfork_thread() from int$80 to syscall.Philip Guenthe
Tune the asm slightly to avoid using the stack and use smaller instructions. Pass threxit() a NULL pointer. seemed okay to kettenis@
2010-12-03Sync with amd64, to allow this to compile without warnings with gcc4:Miod Vallat
``Correct the _atomic_lock() asm so that gcc accepts the constraints when compiling without optimization; fix copied from the kernel's atomic.h'' spotted by jim@
2009-09-27rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationPhilip Guenthe
pointed out by brad, ok djm@
2009-09-24rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationPhilip Guenthe
ok kettenis@, art@
2009-06-01A much better atomic lock routine.Miod Vallat
2009-06-01Correct the _atomic_lock() asm so that gcc accepts the constraintsPhilip Guenthe
when compiling without optimization; fix copied from the kernel's atomic.h ok miod@
2009-02-15these are public domain, verified with author; spotted by jjTheo de Raadt
2008-10-02the license on this is PD; david leonard says soTheo de Raadt
2008-10-01Assert my copyright on files I gave to d@ back in 1998.Dale Rahn
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-05-21Use _C_LABEL when appropriate.Miod Vallat
2007-03-24rfork sh bits.Miod Vallat
2006-01-05Use the system include <spinlock.h> to get the proper functionMarco S Hyman
prototype for _atomic_lock
2006-01-05Fixup stack, it needs 16 bytes headroom. Help from miod@ and drahn.Otto Moerbeek
ok drahn@
2005-12-31No point in saving a bunch of extra registers, and the child's state mustDale Rahn
be fully saved in resisters, if left on the parents stack, it could be overwritten before the child runs. pointed out by miod.
2005-12-28remainder of the hppa support code for librthread. ok&help kettenis@ mickey@Miod Vallat
2005-12-25sparc64 support code for librthread (_atomic_lock yanked from existingMiod Vallat
libpthread code).
2005-12-25sparc support code for librthread (_atomic_lock yanked from existingMiod Vallat
libpthread code).
2005-12-25child calls threxit after thread returnTed Unangst
2005-12-25put the error handling jump code back in from brad/marcoTed Unangst
call right sycall after threadfn return
2005-12-25if the start routine returns (never happens), call the right threxit syscallTed Unangst
2005-12-25A better implementation which does not use the caller's stack and thus is notMiod Vallat
raceable.
2005-12-25add rfork_thread for alpha, from kudo takashiTed Unangst
2005-12-24mips64 support code for librthread (_atomic_lock yanked from existingMiod Vallat
libpthread code).
2005-12-23m88k suppport code for librthread.Miod Vallat
2005-12-23vax support bits for librthread (need the child_return() fix just commited).Miod Vallat
2005-12-23m68k support code for librthread; atomic lock routine borrowed from theMiod Vallat
existing libpthread code.
2005-12-19Fix hppa ldcw alignment issue.Marco Peereboom
Help deraadt, tedu, kettenis Ok tedu, kettenis
2005-12-17sure it is not perfect, but at least we can compile rthreads on hppa.Marco Peereboom
ok deraadt@