提交 1ab23170 创建 作者: Robert Morris's avatar Robert Morris

improve swtch comment

上级 4638cabf
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
# #
# void swtch(struct context **old, struct context *new); # void swtch(struct context **old, struct context *new);
# #
# Save current register context in old # Save the current registers on the stack, creating
# and then load register context from new. # a struct context, and save its address in *old.
# Switch stacks to new and pop previously-saved registers.
.globl swtch .globl swtch
swtch: swtch:
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论