summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-24 02:31:11 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-24 02:31:11 +0000
commit64591128526e98cad1e40ff2bfe0c634ef6b40ef (patch)
tree8ae401666911999bbda4ed15d0acb8631b61101c /coroutine
parent4b0a256e9bd50d7df78ed6baf667e5bb9a332751 (diff)
Fix argument order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/win64/Context.s34
1 files 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