forked from ariadne/libucontext
24 lines
455 B
ArmAsm
24 lines
455 B
ArmAsm
|
.globl __setcontext;
|
||
|
__setcontext:
|
||
|
movq 16(%rdi), %rsi
|
||
|
movq 24(%rdi), %rdx
|
||
|
movq 32(%rdi), %rcx
|
||
|
movq 40(%rdi), %r8
|
||
|
movq 48(%rdi), %r9
|
||
|
movq 56(%rdi), %rax
|
||
|
movq 64(%rdi), %rbx
|
||
|
movq 72(%rdi), %rbp
|
||
|
movq 80(%rdi), %r10
|
||
|
movq 88(%rdi), %r11
|
||
|
movq 96(%rdi), %r12
|
||
|
movq 104(%rdi), %r13
|
||
|
movq 112(%rdi), %r14
|
||
|
movq 120(%rdi), %r15
|
||
|
movq 184(%rdi), %rsp
|
||
|
pushq 160(%rdi) /* new %rip */
|
||
|
movq 8(%rdi), %rdi
|
||
|
ret
|
||
|
|
||
|
.weak setcontext;
|
||
|
setcontext = __setcontext;
|