PowerPC context switch question

Peter Dufault dufault at hda.com
Tue Oct 13 16:38:07 UTC 2009

What does the stwu/ldzu do for us in _CPU_Context_switch()?  I know  
what it's doing, I'm interested in knowing why.
I assume it's setting up for the upcoming dcbz, right?  Why do we do  
the dcbz there?  The next instruction won't start pulling that in  
anyway?  Are there alignment assumptions on the context area?

That sudden switch to "OFFSET-GP_18" had me puzzled for a while.


More information about the users mailing list