tadd stubs for other systems. add threadspawn. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 10495dd32468a290704d0bd15346e7f66efce3d1
 (DIR) parent e544651cc7662639c1feab89b31932e69be2c52a
 (HTM) Author: rsc <devnull@localhost>
       Date:   Sun, 25 Apr 2004 21:31:32 +0000
       
       add stubs for other systems.
       add threadspawn.
       
       Diffstat:
         M src/libthread/PowerMacintosh.c      |      12 ++++++++++++
         M src/libthread/exec-unix.c           |       3 ++-
         M src/libthread/sun4u.c               |      12 ++++++++++++
       
       3 files changed, 26 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/libthread/PowerMacintosh.c b/src/libthread/PowerMacintosh.c
       t@@ -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);
       +}
       +
 (DIR) diff --git a/src/libthread/exec-unix.c b/src/libthread/exec-unix.c
       t@@ -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
 (DIR) diff --git a/src/libthread/sun4u.c b/src/libthread/sun4u.c
       t@@ -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);
       +}
       +