arm
This commit is contained in:
parent
9aa463c541
commit
2494fc9fa0
2 changed files with 6 additions and 17 deletions
|
|
@ -9,8 +9,9 @@ _tas:
|
|||
mov r0, r3
|
||||
mov pc, lr
|
||||
|
||||
.globl getmcontext
|
||||
getmcontext:
|
||||
.globl getcontext
|
||||
getcontext:
|
||||
add r0, r0, #148 /* walk to mcontext */
|
||||
str r1, [r0,#4]
|
||||
str r2, [r0,#8]
|
||||
str r3, [r0,#12]
|
||||
|
|
@ -32,8 +33,9 @@ getmcontext:
|
|||
mov r0, #0
|
||||
mov pc, lr
|
||||
|
||||
.globl setmcontext
|
||||
setmcontext:
|
||||
.globl setcontext
|
||||
setcontext:
|
||||
add r0, r0, #148 /* walk to mcontext */
|
||||
ldr r1, [r0,#4]
|
||||
ldr r2, [r0,#8]
|
||||
ldr r3, [r0,#12]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue