diff options
| author | Valery Ushakov <uwe@stderr.spb.ru> | 2017-08-17 00:13:41 +0300 |
|---|---|---|
| committer | Valery Ushakov <uwe@stderr.spb.ru> | 2017-08-17 00:13:41 +0300 |
| commit | 4a062f32e3dd93bf371feb27f3ccc28d7930099e (patch) | |
| tree | 3f82934c7fd112eecc65efa0db68ed759028f76e /emu/Linux/asm-spim.S | |
| parent | c12c42236c5882afe34356ec8e4088a6ac9c3629 (diff) | |
| parent | 8823998c509302a526d8711095f664dd06997234 (diff) | |
Merged with inferno-os/inferno-os via default.
Diffstat (limited to 'emu/Linux/asm-spim.S')
| -rw-r--r-- | emu/Linux/asm-spim.S | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/emu/Linux/asm-spim.S b/emu/Linux/asm-spim.S index 087b8550..77ae3d4c 100644 --- a/emu/Linux/asm-spim.S +++ b/emu/Linux/asm-spim.S @@ -1,36 +1,7 @@ -#include "syscall.h" #include <sys/asm.h> #include <sys/regdef.h> #include <asm/cachectl.h> -/* - * executeonnewstack(void *tos, void (*tramp)(void *arg), void *arg) - */ - -LEAF(executeonnewstack) - and a0,a0,~7 - addu sp,a0,-16 - move a0,a2 - move t9,a1 - jalr t9 - - li v0,SYS_exit - li a0,0 - syscall - - END(executeonnewstack) - -/* - * unlockandexit(int *key) - */ - -LEAF(unlockandexit) - lw a1,0(a0) - li v0,SYS_exit - li a0,0 - sw a0,0(a1) - syscall - END(unlockandexit) LEAF(FPsave) cfc1 t0, $31 |
