Subject: Re: cpu_switch() bug?
To: None <,>
From: Tad Hunt <>
List: port-powerpc
Date: 02/20/2001 12:15:55
In message <>, you said:
;The reason for writing the cpu_switch code in assembly is that it has to
;switch the stack, and while doing so, it has to save and restore the
;registers to/from known locations on the old/new stack so they can be
;manipulated by other parts of the kernel (like when doing a fork or exec).

Indeed.  I missed that because I was too focused on the part that picks
the next process to run.

Thanks for the clarification.