aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 20:04:53 +0000
committerrsc <devnull@localhost>2003-11-23 20:04:53 +0000
commit478ee9636fcfe3509d0a901d1250524a5c41d3a8 (patch)
tree539eccccbee0a00b306c45583212e4ebb25d7ab6 /src/libthread
parent1c253ceb586c4519f42ce115954c4efab787f81a (diff)
downloadplan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.tar.gz
plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.tar.bz2
plan9port-478ee9636fcfe3509d0a901d1250524a5c41d3a8.zip
Make things build on FreeBSD again.
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/proctab.c10
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);