From 1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Sun, 8 Oct 2017 07:12:31 -0400 Subject: [PATCH] improve swtch comment --- swtch.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/swtch.S b/swtch.S index 875131716a..de612bdef6 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: