add stubs for other systems.

add threadspawn.
This commit is contained in:
rsc 2004-04-25 21:31:32 +00:00
parent e544651cc7
commit 10495dd324
3 changed files with 26 additions and 1 deletions

View file

@ -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);
}

View file

@ -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

View file

@ -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);
}