make pthread__sp unsigned long.
Remove unused code that's confusing when using cscope/opengrok.
Fix typo in comment.
Pull down revision 1.3.6.1 by skrll@ (adapted to include reg::r_gbr). struct mcontext != struct reg on sh3. Fix PTHREAD_UCONTEXT_TO_REG / PTHREAD_REG_TO_UCONTEXT to deal with this.
Recycle unused _REG_EXPEVT slot in mcontext for _REG_GBR.As the size of mcontext is not changed, we avoid the hassle ofversioning all the calls that use it._REG_EXPEVT was never used by any code
Recycle unused _REG_EXPEVT slot in mcontext for _REG_GBR.As the size of mcontext is not changed, we avoid the hassle ofversioning all the calls that use it._REG_EXPEVT was never used by any code in the tree. Reporting EXPEVTmakes sense only for signals and in that case we pass it to userlandin ksi_trap already which is official MI way to get this (MD) information.Old binaries running on new kernels will now have their GBR set fromnew mcontext, but that's ok too, as GBR was not properly supported byold kernels (not saved in trapframe), so old binaries couldn't havepossibly used it anyway.
show more ...
Remove clause 3 and 4 from TNF licenses
- Remove libpthread's atomic ops.- Remove the old spinlock-based mutex and rwlock implementations.- Use the atomic ops from libc.
Remove the PTHREAD_SA option. If M:N threads is reimplemented it'sbetter off done with a seperate library.
Use PLT for PIC calls to avoid text relocs in the shared library.
In PIC code call setcontext(2) via PLT to avoid text reloc in theshared library.
Adapt to new PIC macros that are now in <machine/asm.h>. Same binarycode is generated (still with text relocs, but eliminating them is thenext step).
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Do not move incoming paramters to callee-save registers when notnecessary. Saves about a dozen of instructions.
Add _INITCONTEXT_U_MD, we need to clean _REG_SR.
In pthread__locked_switch set self->pt_uc only when the context is inited.In STACK_SWITCH subtract STACKSPACE, not add it (it's zero for now anyway).
First cut at pthreads MD code for sh3. Based on m68k version.Regression tests still failing: sem, sigalarm.
Add necessary symbols.
Cause SIGTRAP if NOTREACHED code is reached.
Remove possible race condition in upcall recycling.
Adapt to structure name changes.
Not that the branch in SETC doens't have a delay slot, remove the.empty comment as it's no longer pertinent.
PIC patch from Valeriy E. Ushakov applied.Also, removed bogus delay slot flag from branch instruction.
The field "pt_sleepuc" doesn't exist in struct pthread_st.
First bits of SH3 support. Only _context_u.S is implemented (passesscu[1-6] tests), the pthread_switch.S is stubbed out for now.Code posted by Christian Groessler (cpg at aladdin dot de) to port-
First bits of SH3 support. Only _context_u.S is implemented (passesscu[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.