Subject: Re: cpu_switch() bug?
To: None <ws@tools.de, port-powerpc@netbsd.org>
From: Tad Hunt <tad@entrisphere.com>
List: port-powerpc
Date: 02/20/2001 12:15:55
In message <200102201344.OAA07985@kurt.tools.de>, 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.

-Tad