make things work on SunOS
This commit is contained in:
parent
e637c944fe
commit
a0f1e21ff9
19 changed files with 43 additions and 20 deletions
|
|
@ -25,7 +25,7 @@ newthread(Proc *p, void (*f)(void *arg), void *arg, uint stacksize, char *name,
|
|||
sysfatal("bad stacksize %d", stacksize);
|
||||
t = _threadmalloc(sizeof(Thread), 1);
|
||||
s = _threadmalloc(stacksize, 0);
|
||||
t->stk = (char*)s;
|
||||
t->stk = (uchar*)s;
|
||||
t->stksize = stacksize;
|
||||
_threaddebugmemset(s, 0xFE, stacksize);
|
||||
_threadinitstack(t, f, arg);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#include <u.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include "threadimpl.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue