summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch
AgeCommit message (Collapse)Author
2006-07-09Err, restore the name of pthread__switch_return_point, it isross
referenced from C code.
2006-07-08Revise for LP64.ross
Encapsulate previously copied code sections into macros.
2006-07-08remove unreferenced temporary labelross
2006-03-29Instead of using hard-coded values for various registers, get them from thecube
current context. Valid values can change depending on how the kernel is setup. i386 and amd64 happen to be setup differently.
2006-01-09I was a bit over zealous with my last change so revert theskrll
locked_return_point change. Loading the instruction at locked_return_point as a return value didn't work so well. Thanks to uwe, cube, and dsl.
2006-01-06Use PLT for PIC calls to avoid text relocs in the shared library.uwe
2006-01-04In PIC code call setcontext(2) via PLT to avoid text reloc in theuwe
shared library.
2006-01-04A couple of fixes to make libpthread really shared, i.e. not have text re-skrll
locations: - Don't declare pthread__switch_away global - Do the PIC dance for pthread__switch_return_point and pthread__locked_switch. Ideally these (and other) symbols would be hidden. Thanks to uwe@, dyoung@ and elad@ for help. XXX sh3 is still to be done. XXX vax does strange things.
2005-12-31Adapt to new PIC macros that are now in <machine/asm.h>. Same binaryuwe
code is generated (still with text relocs, but eliminating them is the next step).
2005-12-24__asm__ -> __asmperry
2005-12-24Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.perry
2005-04-09Merge updates to algorithms from i386 switch code.matt
2005-04-09Add STACKSPACEmatt
2005-04-09Rework and cleanup. Don't use REI, fake a call frame instead.matt
2004-12-01pt_sleepuc was removed a long time ago.skrll
2004-11-30Punt to setcontext() system call if the PSL_T bit (single-step trap)nathanw
is set, so that the single-step trap happens in the thread's context and not in the middle of _setcontext_u. XXX might be able to do something here with iret, too, but it needs more testing.
2004-11-10save&restore %fs and %gs registers for USER_LDT applications.kent
PR#26900
2004-10-21Fix thread context switching to take the stack ABI into account.fvdl
From Wolfgang Solfrank.
2004-08-21Use RET macro for returning.rearnsha
2004-07-19add hppa MD libpthread bits. translated from MIPS.chs
2004-07-10When _SOFT_FLOAT is defined, don't save or restore user FP context.nathanw
(note: still needs some mk rules tweaking for MKSOFTFLOAT=yes to pass -msoft-float to asm builds).
2004-07-07Fix a comment to say "Edit" instead of "Exit".nathanw
2004-07-03Catch up with changes to __fpregset_t.simonb
In __longjmp14(), copy the FP CSR from the correct array and array slot. Completes fix for PR port-mips/25942.
2004-06-02Remove a comment made obsolete by the previous commit.nathanw
2004-05-28Fix typo in comment.uwe
2004-04-23s/the the/the/ (only in sources that aren't regularly imported fromsimonb
elsewhere).
2004-02-11Add ucontext conversion macros for an "extra" register set.nathanw
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.