summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2009-10-07 17:42:14 -0400
committerFrans Kaashoek <[email protected]>2009-10-07 17:42:14 -0400
commitab777a9ad0355e6df16ee53bad348d5fbb1f347f (patch)
tree906b850a481b441cdb0105440a160d534ad47c97 /proc.h
parentfb4868745cd9c8224e1d93066d0b4f4539be5689 (diff)
downloadxv6-labs-ab777a9ad0355e6df16ee53bad348d5fbb1f347f.tar.gz
xv6-labs-ab777a9ad0355e6df16ee53bad348d5fbb1f347f.tar.bz2
xv6-labs-ab777a9ad0355e6df16ee53bad348d5fbb1f347f.zip
fine-tune comment
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.h b/proc.h
index c790634..ebf4f2d 100644
--- a/proc.h
+++ b/proc.h
@@ -16,8 +16,8 @@
// 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 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.
+// at "Switch stacks" comment. Switch itself doesn't save eip explicitly,
+// but it is on the stack and allocproc() manipulates it.
struct context {
uint edi;
uint esi;