diff options
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/proctab.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libthread/proctab.c b/src/libthread/proctab.c index 222d8c25..5e5dcb2b 100644 --- a/src/libthread/proctab.c +++ b/src/libthread/proctab.c @@ -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); |