]> Devi Nivas Git - cs3210-lab0.git/commitdiff
improve swtch comment
authorRobert Morris <rtm@csail.mit.edu>
Sun, 8 Oct 2017 11:12:31 +0000 (07:12 -0400)
committerRobert Morris <rtm@csail.mit.edu>
Sun, 8 Oct 2017 11:12:31 +0000 (07:12 -0400)
swtch.S

diff --git a/swtch.S b/swtch.S
index 875131716a9ffeff47f706989131ce38f4782556..de612bdef672ce0c0a7ceff141f3b299c58f4012 100644 (file)
--- 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: