summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2009-10-07 15:31:55 -0400
committerFrans Kaashoek <[email protected]>2009-10-07 15:31:55 -0400
commitfb4868745cd9c8224e1d93066d0b4f4539be5689 (patch)
tree335acc14dea6dff8f81a4a99f99f6621f9957cc3 /proc.h
parentccd980bedfcff49ec75cfda4e631b54f0a69bf82 (diff)
downloadxv6-labs-fb4868745cd9c8224e1d93066d0b4f4539be5689.tar.gz
xv6-labs-fb4868745cd9c8224e1d93066d0b4f4539be5689.tar.bz2
xv6-labs-fb4868745cd9c8224e1d93066d0b4f4539be5689.zip
fine tune comment
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/proc.h b/proc.h
index 192f8ff..c790634 100644
--- 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;