From: Robert Morris Date: Sun, 8 Oct 2017 11:12:31 +0000 (-0400) Subject: improve swtch comment X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf;p=cs3210-lab0.git improve swtch comment --- diff --git a/swtch.S b/swtch.S index 8751317..de612bd 100644 --- a/swtch.S +++ b/swtch.S @@ -2,8 +2,9 @@ # # void swtch(struct context **old, struct context *new); # -# Save current register context in old -# and then load register context from new. +# Save the current registers on the stack, creating +# a struct context, and save its address in *old. +# Switch stacks to new and pop previously-saved registers. .globl swtch swtch: