diff options
author | rsc <devnull@localhost> | 2004-04-25 21:31:32 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-25 21:31:32 +0000 |
commit | 10495dd32468a290704d0bd15346e7f66efce3d1 (patch) | |
tree | 16b37938e887671147aa31bd85d31222ac5a0e1c /src/libthread | |
parent | e544651cc7662639c1feab89b31932e69be2c52a (diff) | |
download | plan9port-10495dd32468a290704d0bd15346e7f66efce3d1.tar.gz plan9port-10495dd32468a290704d0bd15346e7f66efce3d1.tar.bz2 plan9port-10495dd32468a290704d0bd15346e7f66efce3d1.zip |
add stubs for other systems.
add threadspawn.
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/PowerMacintosh.c | 12 | ||||
-rw-r--r-- | src/libthread/exec-unix.c | 3 | ||||
-rw-r--r-- | src/libthread/sun4u.c | 12 |
3 files changed, 26 insertions, 1 deletions
diff --git a/src/libthread/PowerMacintosh.c b/src/libthread/PowerMacintosh.c index 12d180e5..21f6041d 100644 --- a/src/libthread/PowerMacintosh.c +++ b/src/libthread/PowerMacintosh.c @@ -25,3 +25,15 @@ _threadinitstack(Thread *t, void (*f)(void*), void *arg) t->sched.sp = (ulong)tos-80; } +void +_threadinswitch(int enter) +{ + USED(enter); +} + +void +_threadstacklimit(void *addr) +{ + USED(addr); +} + diff --git a/src/libthread/exec-unix.c b/src/libthread/exec-unix.c index a4a90d8b..3d4dfcac 100644 --- a/src/libthread/exec-unix.c +++ b/src/libthread/exec-unix.c @@ -115,7 +115,8 @@ threadexecl(Channel *pidc, int fd[3], char *f, ...) args[n] = 0; va_end(arg); - _threadexec(pidc, fd, f, args, 1); + if(_threadexec(pidc, fd, f, args, 1) >= 0) + threadexits(nil); } static void diff --git a/src/libthread/sun4u.c b/src/libthread/sun4u.c index 0c298c62..6312dac9 100644 --- a/src/libthread/sun4u.c +++ b/src/libthread/sun4u.c @@ -39,3 +39,15 @@ _threadinitstack(Thread *t, void (*f)(void*), void *arg) if(0) print("tis %x %x at %x\n", f, arg, t->sched.sp); } +void +_threadinswitch(int enter) +{ + USED(enter); +} + +void +_threadstacklimit(void *addr) +{ + USED(addr); +} + |