From d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 04:20:39 +0000 Subject: more freebsd work --- src/libthread/thread.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/libthread/thread.c') diff --git a/src/libthread/thread.c b/src/libthread/thread.c index b41f9f34..92e93940 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -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. */ -- cgit v1.2.3