summaryrefslogtreecommitdiff
path: root/swtch.S
diff options
context:
space:
mode:
Diffstat (limited to 'swtch.S')
-rw-r--r--swtch.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/swtch.S b/swtch.S
index ada98f3..8751317 100644
--- a/swtch.S
+++ b/swtch.S
@@ -1,5 +1,7 @@
-# void swtch(struct context **old, struct context **new);
-#
+# Context switch
+#
+# void swtch(struct context **old, struct context *new);
+#
# Save current register context in old
# and then load register context from new.
@@ -16,7 +18,7 @@ swtch:
# Switch stacks
movl %esp, (%eax)
- movl (%edx), %esp
+ movl %edx, %esp
# Load new callee-save registers
popl %edi