aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/Linux-arm-asm.s
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-11-04 16:34:19 +0000
committerrsc <devnull@localhost>2005-11-04 16:34:19 +0000
commit1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a (patch)
tree2df6702fe73590dbf26e59a854d903481362574a /src/libthread/Linux-arm-asm.s
parentb4d5d19438106b3904185eb9ba7d6e1b8b0cfdf7 (diff)
downloadplan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.gz
plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.tar.bz2
plan9port-1e05fdf92cf4c3ae32c52d6928f3e74000b76f6a.zip
use macro for getcontext (setjmp)
Diffstat (limited to 'src/libthread/Linux-arm-asm.s')
-rw-r--r--src/libthread/Linux-arm-asm.s10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libthread/Linux-arm-asm.s b/src/libthread/Linux-arm-asm.s
index 8515e4de..5a285bf2 100644
--- a/src/libthread/Linux-arm-asm.s
+++ b/src/libthread/Linux-arm-asm.s
@@ -9,9 +9,8 @@ _tas:
mov r0, r3
mov pc, lr
-.globl getcontext
-getcontext:
- add r0, r0, #148 /* walk to mcontext */
+.globl getmcontext
+getmcontext:
str r1, [r0,#4]
str r2, [r0,#8]
str r3, [r0,#12]
@@ -33,9 +32,8 @@ getcontext:
mov r0, #0
mov pc, lr
-.globl setcontext
-setcontext:
- add r0, r0, #148 /* walk to mcontext */
+.globl setmcontext
+setmcontext:
ldr r1, [r0,#4]
ldr r2, [r0,#8]
ldr r3, [r0,#12]