From 478ee9636fcfe3509d0a901d1250524a5c41d3a8 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Nov 2003 20:04:53 +0000 Subject: Make things build on FreeBSD again. --- src/libthread/proctab.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/libthread') 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); -- cgit v1.2.3