diff options
author | Robert Morris <[email protected]> | 2017-10-08 07:12:31 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2017-10-08 07:12:31 -0400 |
commit | 1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf (patch) | |
tree | 9f5893650b6a6b194b117b11ec21bceed3950762 | |
parent | 4638cabf8c52c5f08f83942103f2375d2ed46388 (diff) | |
download | xv6-labs-1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf.tar.gz xv6-labs-1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf.tar.bz2 xv6-labs-1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf.zip |
improve swtch comment
-rw-r--r-- | swtch.S | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |