Xiao-Yong
329831171d
libthread: use libc functions in ucontext for macOS ( #417 )
2020-06-15 23:18:03 -04:00
Russ Cox
4698bde236
libthread: clean up sysofiles.sh a bit more
2020-01-19 23:04:58 -05:00
Russ Cox
41b3e8b989
libthread: use consistent stack calculation code in makecontext
...
Also reduce duplication: makecontext is per-arch not per-os-arch.
May fix #353 .
2020-01-19 23:04:58 -05:00
Russ Cox
ac8042dfa9
libthread: rm NetBSD pthread reference in sysofiles.sh
...
It may be that pthreads on NetBSD is now good enough,
but the build as written (introduced in 23a2368 at my suggestion)
is certainly broken, since both NetBSD.c and pthread.c define
the same functions.
If NetBSD does support pthreads now, then a few things
should happen together:
- libthread/sysofiles.sh should drop its top NetBSD case entirely
- libthread/NetBSD.c should be deleted
- libthread/NetBSD-*-asm.s should be deleted
- include/u.h's NetBSD case should define PLAN9PORT_USING_PTHREADS
and #include <pthread.h>
For now, restore to less clearly broken build.
2020-01-19 23:04:58 -05:00
Russ Cox
cb8f735786
all: remove Linux 2.4 vs 2.6 detection
...
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
2020-01-19 23:04:58 -05:00
Russ Cox
52397aaf2b
libthread: rm Darwin pre-11.0.0 support
...
Darwin 11.0.0 was Mac OS X 10.7.0 aka Lion.
The previous version was Snow Leopard, which
has been unsupported by Apple since February 2014.
2020-01-19 21:26:30 -05:00
Dan Cross
23a2368980
libthread: NetBSD supports pthreads, remove ancient systems in sysofiles.sh
...
Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16 17:01:44 +00:00
Russ Cox
8c573cab68
libthread: use mmap to allocate OpenBSD stacks
...
Should fix faults on OpenBSD.
Fixes #218 .
Fixes #226 .
2020-01-14 13:58:47 -05:00
Russ Cox
20f5692b7f
openbsd updates (thanks Pascal Stumpf)
...
R=rsc
http://codereview.appspot.com/6401049
2012-07-14 10:16:54 -04:00
Russ Cox
813b3eea8b
OS X PowerPC fixes (thanks Cameron Kaiser)
2011-10-23 17:55:23 -04:00
Russ Cox
b4f9ba7894
libthread: fix 10.5.8 build - uname says 9.8.0
2011-10-14 00:01:12 -04:00
Russ Cox
04e0a9bb81
libthread: Lion context routines
2011-10-13 23:57:54 -04:00
Russ Cox
fc567f476a
build: OS X 64-bit build
...
R=rsc
http://codereview.appspot.com/4838047
2011-08-02 14:28:04 -04:00
Richard Miller
9cf92718e9
arm: build fixes
...
Get p9p to build cleanly for ARM - based on suggestions from rsc and eekee, plus a final tweak from me. Tested (a bit) on sheevaplug (ubuntu jaunty), Nokia N800 (maemo 4) and Nokia N900 (maemo 5).
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4524056
2011-05-18 13:20:56 -04:00
Russ Cox
ba940ae61c
libthread: context switching for arm, still not complete
2009-11-18 04:12:17 -05:00
Russ Cox
2640996af8
libthread: use our own swapcontext/makecontext even on OS X 10.5
2007-11-05 13:14:52 -05:00
Russ Cox
e7ae61181c
libthread: Apple OS X 10.5 (Leopard) tweaks (Jeff Sickel, Bakul Shah)
2007-10-30 13:33:12 -04:00
rsc
0c7c441e90
sparc64 attempt
2006-02-10 05:32:42 +00:00
rsc
0f196d0380
openbsvd
2005-07-21 18:29:59 +00:00
rsc
2860b3559c
openbsd
2005-07-21 00:03:55 +00:00
rsc
b4b686415d
openbsd
2005-07-20 23:29:56 +00:00
rsc
42a57eff1c
better architecture splitting
2005-07-19 17:40:15 +00:00
rsc
cea10000c5
OpenBSD/power support.
2005-05-01 18:38:12 +00:00
rsc
5ba33c04da
NetBSD support. Thanks to Christoph Lohmann.
2005-03-28 15:58:14 +00:00
rsc
7a2c88509b
allow config to override kernel version
2005-01-17 21:30:05 +00:00
rsc
6af7b77611
oops
2005-01-07 22:59:51 +00:00
rsc
50f7ec339a
initial darwin
2005-01-07 21:47:30 +00:00
rsc
c345061e8d
sunos fixes
2005-01-07 07:47:37 +00:00
rsc
93eb807ac2
remove debugging
2004-12-28 03:42:11 +00:00
rsc
8cd0011323
figure out which files to put in the library
2004-12-27 16:53:01 +00:00
rsc
1544f90960
New thread library
2004-12-25 21:56:33 +00:00
rsc
24f4e66b12
still more files
2004-11-08 16:04:01 +00:00