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
proven
89fc7bac08
Initial release of the POSIX 1003.4a Draft 7 thread implementation.
1993-11-14 22:06:22 +00:00