summaryrefslogtreecommitdiffstats
path: root/lib/librthread/arch (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Provide _atomic_lock() and __cerror() for hppa64. Makes hppa64 build again.jsing2012-04-132-0/+74
|
* tfork_thread has been moved to libcguenther2012-03-2213-921/+0
|
* Sync the assembly statements with <machine/lock.h> for consistency.miod2012-03-031-5/+9
|
* fix __errno symbol namemiod2012-02-271-2/+2
|
* Fix buglets.miod2012-02-261-3/+3
|
* __cerror gets invoked with errno in v0, not a0.miod2012-02-261-2/+2
|
* Fix label for threaded binaries to link.miod2012-02-261-2/+2
|
* Missing cerror bits.miod2012-02-181-0/+55
|
* Allow librthread to build on mips64.miod2012-02-172-11/+72
|
* Reimplement mutexes, condvars, and rwlocks to eliminate bugs,guenther2012-01-1713-28/+28
| | | | | | | | | | | | | 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@
* Add the __cerror asm bits for per-thread errno support for hppa.kettenis2011-11-081-0/+33
| | | | ok guenther@
* Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-threadguenther2011-10-1722-68/+527
| | | | | errno. The ASM bits for _cerror are sketchy or missing for some archs but that can be corrected in-tree.
* Deal with the horror that is gcc asm constraints by copying theguenther2011-10-132-8/+4
| | | | | | known good version of ldstub in the kernel. (It's finally in, aja!) ok kettenis@
* Increase the stack offset for the new rthread from (BIAS+128) toguenther2011-10-131-4/+5
| | | | | | | | (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@
* Convert rfork_thread() from int$80 to syscall.guenther2011-10-131-18/+12
| | | | | | | Tune the asm slightly to avoid using the stack and use smaller instructions. Pass threxit() a NULL pointer. seemed okay to kettenis@
* Sync with amd64, to allow this to compile without warnings with gcc4:miod2010-12-031-6/+6
| | | | | | ``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@
* rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationguenther2009-09-271-1/+8
| | | | pointed out by brad, ok djm@
* rfork_thread() lacked PIC handling for CERROR, resulting in a text relocationguenther2009-09-241-1/+6
| | | | ok kettenis@, art@
* A much better atomic lock routine.miod2009-06-011-27/+10
|
* Correct the _atomic_lock() asm so that gcc accepts the constraintsguenther2009-06-011-4/+4
| | | | | | when compiling without optimization; fix copied from the kernel's atomic.h ok miod@
* these are public domain, verified with author; spotted by jjderaadt2009-02-151-1/+4
|
* the license on this is PD; david leonard says soderaadt2008-10-023-3/+9
|
* Assert my copyright on files I gave to d@ back in 1998.drahn2008-10-011-2/+18
|
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | 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@
* Use _C_LABEL when appropriate.miod2008-05-211-2/+2
|
* rfork sh bits.miod2007-03-242-0/+121
|
* Use the system include <spinlock.h> to get the proper functionmarc2006-01-0511-22/+22
| | | | prototype for _atomic_lock
* Fixup stack, it needs 16 bytes headroom. Help from miod@ and drahn.otto2006-01-051-2/+2
| | | | ok drahn@
* No point in saving a bunch of extra registers, and the child's state mustdrahn2005-12-311-6/+8
| | | | | be fully saved in resisters, if left on the parents stack, it could be overwritten before the child runs. pointed out by miod.
* remainder of the hppa support code for librthread. ok&help kettenis@ mickey@miod2005-12-281-0/+65
|
* sparc64 support code for librthread (_atomic_lock yanked from existingmiod2005-12-252-0/+113
| | | | libpthread code).
* sparc support code for librthread (_atomic_lock yanked from existingmiod2005-12-252-0/+114
| | | | libpthread code).
* child calls threxit after thread returntedu2005-12-251-2/+2
|
* put the error handling jump code back in from brad/marcotedu2005-12-251-13/+2
| | | | call right sycall after threadfn return
* if the start routine returns (never happens), call the right threxit syscalltedu2005-12-251-6/+2
|
* A better implementation which does not use the caller's stack and thus is notmiod2005-12-251-35/+42
| | | | raceable.
* add rfork_thread for alpha, from kudo takashitedu2005-12-251-0/+50
|
* mips64 support code for librthread (_atomic_lock yanked from existingmiod2005-12-242-0/+117
| | | | libpthread code).
* m88k suppport code for librthread.miod2005-12-232-0/+99
|
* vax support bits for librthread (need the child_return() fix just commited).miod2005-12-232-0/+111
|
* m68k support code for librthread; atomic lock routine borrowed from themiod2005-12-232-0/+106
| | | | existing libpthread code.
* Fix hppa ldcw alignment issue.marco2005-12-191-3/+10
| | | | | Help deraadt, tedu, kettenis Ok tedu, kettenis
* sure it is not perfect, but at least we can compile rthreads on hppa.marco2005-12-171-0/+30
| | | | ok deraadt@
* boolshitmickey2005-12-161-30/+0
|
* My email address changed quite a while ago...drahn2005-12-141-2/+2
|
* Initial versions of arm code, in-tree development (not yet working).drahn2005-12-142-0/+89
|
* Add locking primitive for hppa. ok kettenis@marco2005-12-141-0/+30
|
* copy alpha atomic_lock implementation from libpthread.brad2005-12-041-0/+19
|
* add a powerpc implementation of rfork_thread().brad2005-12-041-0/+53
| | | | | | From Tim Wiess <tim at nop dot cx> ok drahn@