help with inline assembly code?

Chris Friesen cfriesen at nortel.com
Sat Apr 25 04:23:45 EST 2009


Scott Wood wrote:
> Chris Friesen wrote:
>> Scott Wood wrote:
>>> Is the compiler assigning r0 to addr?  That will be treated as a 
>>> literal zero instead.  Try changing "r" (addr) to "b" (addr), or use 
>>> stwx.
>> Bingo!  Is there a constraint to tell the compiler to not use r0 for addr?
> 
> Yes, "b".

Doh.  Sorry, apparently I can't read today.  Both of those fixes seem to 
work.

Much appreciated.

Chris



More information about the Linuxppc-dev mailing list