From 2c5f7aba38f8e7207a81fdef36d7720bda9dc4e5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 11 Jul 2009 19:28:29 -0700 Subject: initproc, usegment, swtch tweaks --- swtch.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'swtch.S') 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 -- cgit v1.2.3