Reorder registers in other x86_64 assembler files
This fixes the previous commit which changed the register order in swapcontext only, which caused setcontext to subtly corrupt the stack.pull/13/head libucontext-0.1.3
parent
4f190cc561
commit
6046eb47e4
|
@ -22,8 +22,8 @@ __getcontext:
|
||||||
movq %r14, 88(%rdi)
|
movq %r14, 88(%rdi)
|
||||||
movq %r15, 96(%rdi)
|
movq %r15, 96(%rdi)
|
||||||
movq %rdi, 104(%rdi)
|
movq %rdi, 104(%rdi)
|
||||||
movq %rbp, 112(%rdi)
|
movq %rsi, 112(%rdi)
|
||||||
movq %rsi, 120(%rdi)
|
movq %rbp, 120(%rdi)
|
||||||
movq %rbx, 128(%rdi)
|
movq %rbx, 128(%rdi)
|
||||||
movq %rdx, 136(%rdi)
|
movq %rdx, 136(%rdi)
|
||||||
movq $1, 144(%rdi) /* $1 is %rax */
|
movq $1, 144(%rdi) /* $1 is %rax */
|
||||||
|
|
|
@ -21,8 +21,8 @@ __setcontext:
|
||||||
movq 80(%rdi), %r13
|
movq 80(%rdi), %r13
|
||||||
movq 88(%rdi), %r14
|
movq 88(%rdi), %r14
|
||||||
movq 96(%rdi), %r15
|
movq 96(%rdi), %r15
|
||||||
movq 112(%rdi), %rbp
|
movq 112(%rdi), %rsi
|
||||||
movq 120(%rdi), %rsi
|
movq 120(%rdi), %rbp
|
||||||
movq 128(%rdi), %rbx
|
movq 128(%rdi), %rbx
|
||||||
movq 136(%rdi), %rdx
|
movq 136(%rdi), %rdx
|
||||||
movq 144(%rdi), %rax
|
movq 144(%rdi), %rax
|
||||||
|
|
Loading…
Reference in New Issue