more freebsd work
This commit is contained in:
parent
9cb22ba607
commit
d54ead7fb9
10 changed files with 118 additions and 40 deletions
|
|
@ -1,6 +1,3 @@
|
|||
#include "u.h"
|
||||
#include "libc.h"
|
||||
#include "thread.h"
|
||||
#include "threadimpl.h"
|
||||
|
||||
int _threaddebuglevel;
|
||||
|
|
@ -95,7 +92,7 @@ threadalloc(void (*fn)(void*), void *arg, uint stack)
|
|||
sigemptyset(&zero);
|
||||
sigprocmask(SIG_BLOCK, &zero, &t->context.uc.uc_sigmask);
|
||||
|
||||
/* on Linux makecontext neglects floating point */
|
||||
/* must initialize with current context */
|
||||
getcontext(&t->context.uc);
|
||||
|
||||
/* call makecontext to do the real work. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue