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-power.S | |
| parent | c12c42236c5882afe34356ec8e4088a6ac9c3629 (diff) | |
| parent | 8823998c509302a526d8711095f664dd06997234 (diff) | |
Merged with inferno-os/inferno-os via default.
Diffstat (limited to 'emu/Linux/asm-power.S')
| -rw-r--r-- | emu/Linux/asm-power.S | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/emu/Linux/asm-power.S b/emu/Linux/asm-power.S index 6af21fba..7187f938 100644 --- a/emu/Linux/asm-power.S +++ b/emu/Linux/asm-power.S @@ -59,36 +59,3 @@ _tas: 2: sync blr - -/* - * void - * executeonnewstack(void *tos, void (*tramp)(void *arg), void *arg) - */ - .align 2 - .global executeonnewstack -executeonnewstack: - mr %r1,%r3 /* change stacks */ - stwu %lr,-16(%r1) /* save lr to aid the traceback */ - li %r0,0 - stw %r0,20(%r1) - mr %r3,%r5 - mtctr %r4 - bctrl /* tramp(arg) */ - br - -/* - * void unlockandexit(int *key) - * - * NB: the return status may be garbaged if the stack is reused - * between the unlock and the system call, but this should - * not matter since no task is waiting for the result - */ - .align 2 - .globl unlockandexit -unlockandexit: - li %r0,0x0 - stw %r0,0(%r3) /* unlock */ - li %r0,1 /* sys exit; 234 is exit group */ - li %r3,0 /* exit status */ - sc - br |
