summaryrefslogtreecommitdiffstats
path: root/src/libthread/power.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-25 21:56:33 +0000
committerrsc <devnull@localhost>2004-12-25 21:56:33 +0000
commit1544f90960275dc9211bde30329c3258e0e1bf38 (patch)
treef55e7a73c03aaa24daa7cc2ad02822b921c477f9 /src/libthread/power.c
parent7788fd54094693384ef5c92c475656dba8819feb (diff)
downloadplan9port-1544f90960275dc9211bde30329c3258e0e1bf38.tar.gz
plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.zip
New thread library
Diffstat (limited to 'src/libthread/power.c')
-rw-r--r--src/libthread/power.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/libthread/power.c b/src/libthread/power.c
deleted file mode 100644
index b0a14e6f..00000000
--- a/src/libthread/power.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include "threadimpl.h"
-
-static void
-launcherpower(int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7,
- void (*f)(void *arg), void *arg)
-{
- (*f)(arg);
- threadexits(nil);
-}
-
-void
-_threadinitstack(Thread *t, void (*f)(void*), void *arg)
-{
- ulong *tos, *stk;
-
- tos = (ulong*)&t->stk[t->stksize&~7];
- stk = tos;
- --stk;
- --stk;
- --stk;
- --stk;
- *--stk = (ulong)arg;
- *--stk = (ulong)f;
- t->sched.pc = (ulong)launcherpower+LABELDPC;
- t->sched.sp = ((ulong)stk)-8;
- *((ulong *)t->sched.sp) = 0;
-}
-
-void
-_threadinswitch(int enter)
-{
- USED(enter);
-}
-
-void
-_threadstacklimit(void *addr, void *addr2)
-{
- USED(addr);
-}
-