marcus
cccf9dfce5
The field "pt_sleepuc" doesn't exist in struct pthread_st.
2003-07-05 21:27:23 +00:00
nathanw
9639eeaf54
Adapt to pt_trapuc: change STACK_SWITCH to check for a value in pt_trapuc
...
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-26 01:45:31 +00:00
nathanw
1414a095ac
Remove PT_SLEEPUC and add PT_TRAPUC.
2003-06-26 01:29:28 +00:00
nathanw
39f9ecfa06
Oops, reordering the PT_STATE/PT_SWITCHTOUC/PT_SWITCHTO assembly
...
killed a live value too soon. Fix by using a different register for
the PT_STATE immediate.
2003-06-24 18:54:56 +00:00
nathanw
96458e8892
Update the switch_return point name in the static case.
2003-06-23 22:50:23 +00:00
uwe
b92f152573
First bits of SH3 support. Only _context_u.S is implemented (passess
...
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-23 19:34:43 +00:00
martin
f546abe798
Catch up with Nathan's changes to other archs.
2003-06-17 23:18:48 +00:00
martin
aba86b525b
Catch up with changes Nathan did to other archs.
2003-06-15 17:11:36 +00:00
scw
7d221cb560
Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.
2003-06-13 08:07:03 +00:00
scw
04f197eae9
Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.
...
Compile-tested only.
2003-06-13 07:45:17 +00:00
nathanw
4bd45b7b3b
Oops, that's switch_return_point, not locked_return_point. The perils
...
of cut-and-paste.
2003-06-12 23:19:27 +00:00
nathanw
aa6f5de228
STACKSPACE of 16 is too small, given the use of CALLFRAME_SIZ;
...
increase to match.
2003-06-12 23:01:17 +00:00
nathanw
eb6ba6fbef
Apply switch-away fix and previous save-PT_UC from new stack fix.
2003-06-12 23:00:28 +00:00
fvdl
1a31b8db4d
Apply Nathan's switch-away fix.
2003-06-12 22:03:18 +00:00
nathanw
f866ba061d
Two fixes:
...
* In switch-away cases, write PT_SWITCHTO last (after PT_SWITCHTOUC), so
that pthread__resolve_locks() doesn't see an empty SWITCHTOUC value. This
also permits pthread__resolve_locks() to use the presence of PT_SWITCHTO
as a sign that the thread has done all of its necessary chain work.
* Make the return-point of pthread__switch global and visible, so that its
address can be compared to the PC of a thread, again as a sign that its
chain-work is done.
(other architectures in progress, after they get the *previous* asm fix...)
2003-06-12 21:46:03 +00:00
nathanw
edc79413b1
Don't need to set the MSR field here; _INITCONTEXT_U_MD() takes care
...
of that where necessary.
2003-06-12 19:09:45 +00:00
nathanw
1809ee5c2c
Fix typo in comment.
2003-06-06 19:35:03 +00:00
scw
644aebe258
Duh. s/PIC_PROLOGUE/PIC_EPILOGUE/
2003-05-16 22:40:56 +00:00
petrov
cf5b7785eb
Add missing include and copyright.
2003-05-07 01:21:13 +00:00
fvdl
b32287cc19
Catch up with changed struct reg (same as gregs in mcontext now).
2003-04-17 10:13:51 +00:00
bjh21
55cecd0f26
NetBSD/acorn26 has used APCS-32 for years, so unifdef -U__APCS_26__.
2003-04-05 23:15:10 +00:00
scw
52569eab7f
Add PIC support.
2003-03-26 22:33:56 +00:00
thorpej
04d0b802f7
Include <sys/types> before <sys/lock.h>, shuffle <ucontext.h>.
2003-03-13 19:51:33 +00:00
lukem
f043c0fb57
add __RCSID()
2003-03-08 08:03:34 +00:00
scw
65e4a59445
Don't use FP instructions when building for m68010. Fixes broken sun2 build.
...
G/C some unused code.
2003-03-01 11:51:59 +00:00
fvdl
59f9830997
Continue at the plain switch return point in pthread__switch, not the
...
locked one, in the !PIC case. From Tor Egge via Havard Eidnes.
2003-02-10 11:09:33 +00:00
pk
453f6b99a3
Include <sys/types.h>
...
Remove v9 register defs.
2003-01-31 12:06:27 +00:00
fvdl
1627b9c342
libpthread support for x86_64.
2003-01-30 02:10:31 +00:00
scw
b5ca8aee09
Yay! Working pthreads for sh5.
2003-01-22 13:52:48 +00:00
scw
ff288f9424
Make these compile.
2003-01-21 11:31:38 +00:00
scw
980dea552e
Add _UC_USER_BIT.
2003-01-21 11:30:52 +00:00
scw
9566978c66
First cut of MD pthread glue for sh5.
2003-01-21 00:34:56 +00:00
scw
b896a7171e
_{get,set,swap}context_u() for SH5.
2003-01-20 17:03:58 +00:00
matt
3afb199f73
Define FPREG macros even though we don't have any.
2003-01-20 01:49:36 +00:00
matt
d36a12c9ca
Add myself to the authors list.
2003-01-20 01:08:03 +00:00
matt
fb891b41f5
Add _REG_foo to ppc mcontext and use them instead of constants.
2003-01-20 00:53:55 +00:00
matt
aa6dda7b98
Need to define STACKSIZE (even though we don't need any).
2003-01-19 23:22:29 +00:00
matt
9eecca32ca
Add of pthread support for VAX.
2003-01-19 23:20:14 +00:00
matt
561334ea93
Set _UC_USER in ucontext. Call setcontext if _UC_USER is not in
...
_setcontext_u
2003-01-19 21:31:42 +00:00
matt
696d424be5
VAX versions of _getcontext_u/_setcontext_u/_swapcontext_u
2003-01-19 21:01:55 +00:00
christos
54ba9fedfe
delint
2003-01-18 19:11:07 +00:00
christos
9631ace572
de-lint
2003-01-18 18:40:52 +00:00
christos
3823415af9
add missing backslash
2003-01-18 18:40:08 +00:00
thorpej
c62a74e6d5
Merge the nathanw_sa branch.
2003-01-18 10:32:11 +00:00
scottr
a1d96607f3
This incarnation of the pthreads library is ancient and not useful, and
...
should have been mothballed some time ago...
1997-10-08 17:14:35 +00:00
proven
21f4b3b04c
More wrapper functions, and some hacks for machine independent sleep
...
mechanisms.
1994-02-07 22:00:44 +00:00
mycroft
c48a79fee8
Stylistic change.
1994-01-27 06:50:06 +00:00
mycroft
abeb62670e
Delete special rules for syscall.S; they are not needed, and one of them
...
is wrong anyway.
1994-01-07 16:36:45 +00:00
proven
abe1bf3801
Copyrights added to each file.
1993-12-20 19:30:07 +00:00
proven
e123d2840c
OK one more try at getting it right ...
1993-11-15 10:02:18 +00:00