Make things build on FreeBSD again.

This commit is contained in:
rsc 2003-11-23 20:04:53 +00:00
parent 1c253ceb58
commit 478ee9636f
8 changed files with 16 additions and 22 deletions

View file

@ -26,17 +26,7 @@ __threadgetproc(int rm)
{
Proc **l, *p;
int h, pid;
Thread *t;
ulong *s;
/* fails on linux, probably because the main stack
* has to be grown a page at a time instead of the big jump?
s = (ulong*)((ulong)&pid & ~(STKSIZE-1));
if(s[0] == STKMAGIC){
t = (Thread*)s[1];
return t->proc;
}
*/
pid = _threadgetpid();
lock(&ptablock);