From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zcars04e.nortel.com (zcars04e.nortel.com [47.129.242.56]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "", Issuer "NORTEL" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A2A25DE114 for ; Sat, 25 Apr 2009 04:27:42 +1000 (EST) Message-ID: <49F203B1.6040508@nortel.com> Date: Fri, 24 Apr 2009 12:23:45 -0600 From: "Chris Friesen" MIME-Version: 1.0 To: Scott Wood Subject: Re: help with inline assembly code? References: <49F1F56C.8000708@nortel.com> <49F1F841.8080507@freescale.com> <49F1FF98.1000100@nortel.com> <49F20181.10206@freescale.com> In-Reply-To: <49F20181.10206@freescale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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