[RFC/PATCH] Make powerpc64 use __thread for per-cpu variables

Segher Boessenkool segher at kernel.crashing.org
Fri May 12 09:41:32 EST 2006


>> Would an asm clobber of GPR13 in the schedule routines (or a wrapper
>> for them, or whatever) work?
>
> No.  The address is cse'd symbolically long before the r13
> reference is exposed.

Current GCC won't ever do that over a (non-local, non-inlinable)
function call though.  _Current_ GCC.


Segher




More information about the Linuxppc-dev mailing list