add stubs for other systems.
add threadspawn.
This commit is contained in:
parent
e544651cc7
commit
10495dd324
3 changed files with 26 additions and 1 deletions
|
|
@ -25,3 +25,15 @@ _threadinitstack(Thread *t, void (*f)(void*), void *arg)
|
||||||
t->sched.sp = (ulong)tos-80;
|
t->sched.sp = (ulong)tos-80;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_threadinswitch(int enter)
|
||||||
|
{
|
||||||
|
USED(enter);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_threadstacklimit(void *addr)
|
||||||
|
{
|
||||||
|
USED(addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,8 @@ threadexecl(Channel *pidc, int fd[3], char *f, ...)
|
||||||
args[n] = 0;
|
args[n] = 0;
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
|
|
||||||
_threadexec(pidc, fd, f, args, 1);
|
if(_threadexec(pidc, fd, f, args, 1) >= 0)
|
||||||
|
threadexits(nil);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue