summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch
AgeCommit message (Collapse)Author
2003-11-26Hide the register number constants behind an _R_ prefix, and alsohe
rename FPBASE to _FPBASE, so that we avoid polluting the user's name space when e.g. <sys/ptrace.h> is included. Previously, the PC symbol in mips/regnum.h would conflict with the declaration of the external variable by the same name in termcap.h, as discovered by the ``okheaders'' regression test.
2003-11-25This is not needed anymore.christos
2003-11-25m68k does not sigcontext<->mcontext anymore.christos
2003-11-20Do not move incoming paramters to callee-save registers when notuwe
necessary. Saves about a dozen of instructions.
2003-11-20Add _INITCONTEXT_U_MD, we need to clean _REG_SR.uwe
2003-11-20In pthread__locked_switch set self->pt_uc only when the context is inited.uwe
In STACK_SWITCH subtract STACKSPACE, not add it (it's zero for now anyway).
2003-11-18First cut at pthreads MD code for sh3. Based on m68k version.uwe
Regression tests still failing: sem, sigalarm.
2003-11-18Add necessary symbols.uwe
2003-11-17Cause SIGTRAP if NOTREACHED code is reached.uwe
2003-11-11Fix ucontext conversion macros. From Christian Limpach.martin
2003-11-10All the ucontext <-> {fp}reg macros were slightly simplistic and untestedmartin
before (old gdb support on sparc did not use this). Pointed out by Christian Limpach.
2003-11-08Make register usage more consistent, also in comparison with the i386fvdl
version, for easier maintenance.
2003-11-08Restore %rax correctly during a full context restore (oops).fvdl
2003-10-30use explicit "l" suffixes. (eg. lea -> leal)yamt
2003-10-20Correct and simplify computing the return point; just use PC-relativefvdl
addressing.
2003-10-19Make sure the stack stays aligned.fvdl
2003-10-12fix typo in previous.chs
2003-09-22SA_SIGINFO support for m68k (libpthread)cl
2003-09-17fix pt_trapuc handling errors:cl
- movl to address register doesn't set flags (add explicit test) - clr only clears a word (use clrl)
2003-09-07Remove possible race condition in upcall recycling.cl
2003-09-07Use delay slot in STACK_SWITCH (catching up with sparc64 changes).uwe
2003-09-07Use correct context to switch to.uwe
From sparc64 fix by Andrey Petrov <petrov@netbsd>.
2003-08-26typo in previous commit, annul isn't good there,petrov
noticed by Eduardo Horvath.
2003-08-25Use branch-slot in STACK_SWITCH, suggested by Martin Husemann.petrov
2003-08-25Use correct context to switch to.petrov
2003-08-25Add PT_TRAPUC and pthread__switch_return_point.ragge
Not tested (as most of the pthread stuff on vax) but at least allow the system to compile.
2003-08-12Adapt to Nathan's recent pt_trapuc/pt_sleepuc change.scw
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-07-29Remove PT_SLEEPUC, which somehow wasn't.kleink
2003-07-26netbsd.org->NetBSD.orgsalo
2003-07-26need <string.h>mrg
2003-07-24Typo in comment.skrll
2003-07-17Adapt to structure name changes.nathanw
2003-07-09Update to new world order. **not tested** But will allow builds tomatt
finish.
2003-07-05Not that the branch in SETC doens't have a delay slot, remove theuwe
.empty comment as it's no longer pertinent.
2003-07-05PIC patch from Valeriy E. Ushakov applied.marcus
Also, removed bogus delay slot flag from branch instruction.
2003-07-05The field "pt_sleepuc" doesn't exist in struct pthread_st.marcus
2003-06-26Adapt to pt_trapuc: change STACK_SWITCH to check for a value in pt_trapucnathanw
and use it preferentially to a value in pt_uc, clearing it once on the new stack. Move stores into pt_uc back to before the stack switch; storing after the stack switch opened a one-instruction race condition where an upcall that had just started a chain could be preempted again, and would bomb when restarted due to its pt_uc not yet having been updated. Now that pt_trapuc is what the upcall code writes to, it is safe to store to pt_uc before switching stacks. Remove obsolete pt_sleepuc code.
2003-06-26Remove PT_SLEEPUC and add PT_TRAPUC.nathanw
2003-06-24Oops, reordering the PT_STATE/PT_SWITCHTOUC/PT_SWITCHTO assemblynathanw
killed a live value too soon. Fix by using a different register for the PT_STATE immediate.
2003-06-23Update the switch_return point name in the static case.nathanw
2003-06-23First bits of SH3 support. Only _context_u.S is implemented (passessuwe
cu[1-6] tests), the pthread_switch.S is stubbed out for now. Code posted by Christian Groessler (cpg at aladdin dot de) to port-sh3.
2003-06-17Catch up with Nathan's changes to other archs.martin
2003-06-15Catch up with changes Nathan did to other archs.martin
2003-06-13Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.scw
2003-06-13Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.scw
Compile-tested only.
2003-06-12Oops, that's switch_return_point, not locked_return_point. The perilsnathanw
of cut-and-paste.
2003-06-12STACKSPACE of 16 is too small, given the use of CALLFRAME_SIZ;nathanw
increase to match.
2003-06-12Apply switch-away fix and previous save-PT_UC from new stack fix.nathanw
2003-06-12Apply Nathan's switch-away fix.fvdl