more freebsd work

This commit is contained in:
rsc 2004-12-28 04:20:39 +00:00
parent 9cb22ba607
commit d54ead7fb9
10 changed files with 118 additions and 40 deletions

View file

@ -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. */