[Skiboot] [PATCH 03/13] cpu.h: implement this_cpu for clang

Balbir Singh bsingharora at gmail.com
Thu May 3 07:49:57 AEST 2018


On Wed, 2018-05-02 at 18:07 +0930, Joel Stanley wrote:
> Clang can't use the global register variable, so instead load struct
> cpu_thread from r13 and return it.
> 

How do we know clang is not using r13 for anything else? Does -ffixed-reg
work with r13?

Balbir Singh.



More information about the Skiboot mailing list