aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/arm-ucontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/arm-ucontext.c')
-rw-r--r--src/libthread/arm-ucontext.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/libthread/arm-ucontext.c b/src/libthread/arm-ucontext.c
deleted file mode 100644
index 512ca973..00000000
--- a/src/libthread/arm-ucontext.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "threadimpl.h"
-
-void
-makecontext(ucontext_t *uc, void (*fn)(void), int argc, ...)
-{
- int i, *sp;
- va_list arg;
-
- sp = USPALIGN(uc, 4);
- va_start(arg, argc);
- for(i=0; i<4 && i<argc; i++)
- (&uc->uc_mcontext.arm_r0)[i] = va_arg(arg, uint);
- va_end(arg);
- uc->uc_mcontext.arm_sp = (uint)sp;
- uc->uc_mcontext.arm_lr = (uint)fn;
-}
-
-int
-swapcontext(ucontext_t *oucp, const ucontext_t *ucp)
-{
- if(getcontext(oucp) == 0)
- setcontext(ucp);
- return 0;
-}