1999-06-08 12:47:42 +00:00
|
|
|
--- src/thread.c.orig Thu Nov 6 06:03:00 1997
|
|
|
|
+++ src/thread.c Tue Jun 8 21:37:09 1999
|
|
|
|
@@ -243,13 +243,13 @@
|
|
|
|
critical--; } while (0);
|
|
|
|
args = t->sp;
|
|
|
|
}
|
|
|
|
-#if alpha
|
|
|
|
- { extern void _start(void);
|
|
|
|
+#if __alpha
|
|
|
|
+ { extern void _thrstart(void);
|
|
|
|
t->sp -= 112/8;
|
|
|
|
t->sp[(48+24)/8] = (unsigned long)Thread_exit;
|
|
|
|
t->sp[(48+16)/8] = (unsigned long)args;
|
|
|
|
t->sp[(48+ 8)/8] = (unsigned long)apply;
|
|
|
|
- t->sp[(48+ 0)/8] = (unsigned long)_start; }
|
|
|
|
+ t->sp[(48+ 0)/8] = (unsigned long)_thrstart; }
|
|
|
|
#elif mips
|
|
|
|
{ extern void _start(void);
|
|
|
|
t->sp -= 16/4;
|
1999-01-10 19:05:23 +00:00
|
|
|
@@ -269,7 +269,7 @@
|
|
|
|
*--t->sp = (unsigned long)_start - 8;
|
|
|
|
*--t->sp = (unsigned long)fp;
|
|
|
|
t->sp -= 64/4; }
|
|
|
|
-#elif linux && i386
|
|
|
|
+#elif (linux || unix) && i386
|
|
|
|
{ extern void _thrstart(void);
|
|
|
|
t->sp -= 4/4;
|
|
|
|
*t->sp = (unsigned long)_thrstart;
|