summaryrefslogtreecommitdiff
path: root/coroutine/amd64/Context.s
diff options
context:
space:
mode:
Diffstat (limited to 'coroutine/amd64/Context.s')
-rw-r--r--coroutine/amd64/Context.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/coroutine/amd64/Context.s b/coroutine/amd64/Context.s
index e23f87de85..0c4296035e 100644
--- a/coroutine/amd64/Context.s
+++ b/coroutine/amd64/Context.s
@@ -21,13 +21,13 @@ _coroutine_transfer:
pushq %r13
pushq %r14
pushq %r15
-
+
# Save caller stack pointer
movq %rsp, (%rdi)
-
+
# Restore callee stack pointer
movq (%rsi), %rsp
-
+
# Restore callee stack
popq %r15
popq %r14
@@ -35,9 +35,9 @@ _coroutine_transfer:
popq %r12
popq %rbx
popq %rbp
-
+
# Put the first argument into the return value
movq %rdi, %rax
-
+
# We pop the return address and jump to it
ret