Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cpu_switch() bug?



In message <200102201344.OAA07985%kurt.tools.de@localhost>, 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




Home | Main Index | Thread Index | Old Index