On Tue, 27 Feb 2001, Julian Elischer wrote:

> Bruce Evans wrote:
> > Most of the pcb actually has the same persistence as the kernel stack
> > (both mainly store the process's context while the process is in the
> > kernel).  But it is silly to put the pcb below the stack instead of
> > above it.  Perhaps the idea is to get a panic sooner when something
> > is corrupted.
> 
> I have never understood why the context is not ON the stack.

At least on i386's, it is because the context is not all saved in LIFO
order.  The pcb gets the non-LIFO stuff.  E.g., the FP state is saved
lazily, not pushed on every entry to the kernel.

Bruce


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to