diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-04 16:11:48 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-04 16:11:48 +0200 |
commit | 986886f2b8ab4a7e1b3d66e99934d8fdab537be9 (patch) | |
tree | c49e9711e7229a8d12f5b5b0ab38b5bd6c27b711 /sys/src/libthread/alpha.c | |
parent | f7703d6971383c39f981f5676a4e28a6371c3997 (diff) |
retire the dec alpha port
Diffstat (limited to 'sys/src/libthread/alpha.c')
-rw-r--r-- | sys/src/libthread/alpha.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/src/libthread/alpha.c b/sys/src/libthread/alpha.c deleted file mode 100644 index e74855346..000000000 --- a/sys/src/libthread/alpha.c +++ /dev/null @@ -1,32 +0,0 @@ -#include <u.h> -#include <libc.h> -#include <thread.h> -#include "threadimpl.h" - -/* first argument goes in a register and on the stack; avoid it */ -static void -launcheralpha(int, void (*f)(void *arg), void *arg) -{ - (*f)(arg); - threadexits(nil); -} - -void -_threadinitstack(Thread *t, void (*f)(void*), void *arg) -{ - ulong *tos; - - tos = (ulong*)&t->stk[t->stksize&~7]; - - *--tos = 0; /* pad arguments to 8 bytes */ - *--tos = (ulong)arg; - *--tos = (ulong)f; - *--tos = 0; /* first arg */ - - *--tos = 0; /* for alignment with... */ - *--tos = 0; /* ... place to store return PC */ - - t->sched[JMPBUFPC] = (ulong)launcheralpha+JMPBUFDPC; - t->sched[JMPBUFSP] = (ulong)tos; -} - |