summaryrefslogtreecommitdiff
path: root/emu/NetBSD/asm-power.S
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2019-08-21 15:21:24 +0000
committerCharles Forsyth <charles.forsyth@gmail.com>2019-08-21 15:21:24 +0000
commit8a003973f13c53f37de48c6c635500b5a0988cfb (patch)
treec31d09069228de059225293e8cbd91e7758b27d3 /emu/NetBSD/asm-power.S
parent230871f7e16b4cbbb77cbf184bd16d93601fe3b7 (diff)
parente09f600591d16a8badf8678ab7606eb00bca98c2 (diff)
Merged in nbuwe/inferno-os/NetBSD/pthreads (pull request #24)
NetBSD/pthreads
Diffstat (limited to 'emu/NetBSD/asm-power.S')
-rw-r--r--emu/NetBSD/asm-power.S31
1 files changed, 0 insertions, 31 deletions
diff --git a/emu/NetBSD/asm-power.S b/emu/NetBSD/asm-power.S
index da40e825..32418e01 100644
--- a/emu/NetBSD/asm-power.S
+++ b/emu/NetBSD/asm-power.S
@@ -58,34 +58,3 @@ ENTRY_NOPROFILE(_tas)
sync
blr
END(_tas)
-
-/*
- * void
- * executeonnewstack(void *tos, void (*tramp)(void *arg), void *arg)
- */
-ENTRY_NOPROFILE(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
- END(executeonnewstack)
-
-/*
- * 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
- */
-ENTRY_NOPROFILE(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
- END(unlockandexit)