summaryrefslogtreecommitdiffstats
path: root/lib/librthread/arch/powerpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move mutex, condvar, and thread-specific data routes, pthread_once, andguenther2017-09-051-53/+0
| | | | | | | | pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread. Requested by libressl team. Ports testing by naddy@ ok kettenis@
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-071-41/+0
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
* cleanup and consolidate the spinlock_lock (what a name!) code.tedu2013-06-011-6/+6
| | | | | | | | | | it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
* tfork_thread has been moved to libcguenther2012-03-221-53/+0
|
* Reimplement mutexes, condvars, and rwlocks to eliminate bugs,guenther2012-01-171-2/+2
| | | | | | | | | | | | | 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.
* Add the __cerror asm bits for per-thread errno support for powerpc.kettenis2011-11-091-0/+41
| | | | ok guenther@
* Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-threadguenther2011-10-171-4/+4
| | | | | errno. The ASM bits for _cerror are sketchy or missing for some archs but that can be corrected in-tree.
* Assert my copyright on files I gave to d@ back in 1998.drahn2008-10-011-2/+18
|
* Use the system include <spinlock.h> to get the proper functionmarc2006-01-051-2/+2
| | | | prototype for _atomic_lock
* Fixup stack, it needs 16 bytes headroom. Help from miod@ and drahn.otto2006-01-051-2/+2
| | | | ok drahn@
* child calls threxit after thread returntedu2005-12-251-2/+2
|
* My email address changed quite a while ago...drahn2005-12-141-2/+2
|
* add a powerpc implementation of rfork_thread().brad2005-12-041-0/+53
| | | | | | From Tim Wiess <tim at nop dot cx> ok drahn@
* copy powerpc atomic_lock implementation from libpthread.brad2005-12-041-0/+37
ok drahn@