inline assembly & r0 SOS
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed Aug 6 10:35:07 EST 2008
On Tue, 2008-08-05 at 17:20 -0700, Kevin Diggs wrote:
> Hi,
>
> thats bad right? Because the "addi 0, 0, 23" will not work as expected
> because of the "special property" of r0. FYI: The first three lines
> after the "#APP" are from a similar function get_PLL_ratio().
>
> Is there a way to blacklist r0?
Yes. Use "b" instead of "r" in the constraints to force the compiler
to avoid r0 when assigning a register.
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list