summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2017-10-08 07:12:31 -0400
committerRobert Morris <[email protected]>2017-10-08 07:12:31 -0400
commit1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf (patch)
tree9f5893650b6a6b194b117b11ec21bceed3950762
parent4638cabf8c52c5f08f83942103f2375d2ed46388 (diff)
downloadxv6-labs-1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf.tar.gz
xv6-labs-1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf.tar.bz2
xv6-labs-1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf.zip
improve swtch comment
-rw-r--r--swtch.S5
1 files changed, 3 insertions, 2 deletions
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: