Make things build on FreeBSD again.
This commit is contained in:
parent
1c253ceb58
commit
478ee9636f
8 changed files with 16 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue