diff --git a/proc.h b/proc.h index c790634f56ac6dbfa850c47141b9f64b1f82dd85..ebf4f2d460cf54dae504aa17182ce528c7f32875 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;