Thread (6 messages) 6 messages, 5 authors, 2008-08-06

Re: inline assembly & r0 SOS

flat view

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2008-08-06 00:35:24

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help