From 64591128526e98cad1e40ff2bfe0c634ef6b40ef Mon Sep 17 00:00:00 2001 From: samuel Date: Sat, 24 Nov 2018 02:31:11 +0000 Subject: Fix argument order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- coroutine/win64/Context.s | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/coroutine/win64/Context.s b/coroutine/win64/Context.s index 04d97d1aaf..4b16e0ce8c 100644 --- a/coroutine/win64/Context.s +++ b/coroutine/win64/Context.s @@ -23,23 +23,6 @@ coroutine_transfer: pushq %r14 pushq %r15 - movaps -24(%rsp), %xmm6 - movaps -40(%rsp), %xmm7 - movaps -56(%rsp), %xmm8 - movaps -72(%rsp), %xmm9 - movaps -88(%rsp), %xmm10 - movaps -104(%rsp), %xmm11 - movaps -120(%rsp), %xmm12 - movaps -136(%rsp), %xmm13 - movaps -152(%rsp), %xmm14 - movaps -168(%rsp), %xmm15 - - # Save caller stack pointer: - mov %rsp, (%rcx) - - # Restore callee stack pointer: - mov (%rdx), %rsp - movaps %xmm15, -168(%rsp) movaps %xmm14, -152(%rsp) movaps %xmm13, -136(%rsp) @@ -51,6 +34,23 @@ coroutine_transfer: movaps %xmm7, -40(%rsp) movaps %xmm6, -24(%rsp) + # Save caller stack pointer: + mov %rsp, (%rcx) + + # Restore callee stack pointer: + mov (%rdx), %rsp + + movaps -24(%rsp), %xmm6 + movaps -40(%rsp), %xmm7 + movaps -56(%rsp), %xmm8 + movaps -72(%rsp), %xmm9 + movaps -88(%rsp), %xmm10 + movaps -104(%rsp), %xmm11 + movaps -120(%rsp), %xmm12 + movaps -136(%rsp), %xmm13 + movaps -152(%rsp), %xmm14 + movaps -168(%rsp), %xmm15 + # Restore callee stack: popq %r15 popq %r14 -- cgit v1.2.3