]> Devi Nivas Git - cs3210-lab0.git/commitdiff
fine tune comment
authorFrans Kaashoek <kaashoek@30-7-101.wireless.csail.mit.edu>
Wed, 7 Oct 2009 19:31:55 +0000 (15:31 -0400)
committerFrans Kaashoek <kaashoek@30-7-101.wireless.csail.mit.edu>
Wed, 7 Oct 2009 19:31:55 +0000 (15:31 -0400)
proc.h

diff --git a/proc.h b/proc.h
index 192f8ffd1575a82b8618c2699d1dc282aa0c780c..c790634f56ac6dbfa850c47141b9f64b1f82dd85 100644 (file)
--- a/proc.h
+++ b/proc.h
@@ -15,7 +15,9 @@
 // x86 convention is that the caller has saved them.
 // Contexts are stored at the bottom of the stack they
 // describe; the stack pointer is the address of the context.
-// The layout of the context must match the code in swtch.S.
+// The layout of the context matches the layout of the stack in swtch.S
+// at "Switch stacks" comment. eip is included  in the context 
+// so that allocproc() can easily change the return address on the stack.
 struct context {
   uint edi;
   uint esi;