use macro for getcontext (setjmp)

This commit is contained in:
rsc 2005-11-04 16:34:19 +00:00
parent b4d5d19438
commit 1e05fdf92c
8 changed files with 25 additions and 56 deletions

View file

@ -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]