From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: <20070410111508.GA2969@localhost.localdomain> References: <20070410111508.GA2969@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [patch 3/3] cell: prevent alignment interrupt on local store Date: Tue, 10 Apr 2007 14:52:33 +0200 To: Akinobu Mita Cc: Arnd Bergmann , linuxppc-dev@ozlabs.org, Paul Mackerras , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > An Alignment interrupt occurs when the instruction is lmw, stmw, lswi, > lswx, > stswi, or stswx, and the operand is in local store. > > GCC generated such instructions to handle memcpy() instead of kernel > defined memcpy() without -mno-string option. > +# An Alignment interrupt occurs when the instruction is lmw, stmw, > lswi, lswx, > +# stswi, or stswx, and the operand is in local store. > +CFLAGS_run.o := -mno-string > +CFLAGS_file.o := -mno-string NAK. Please use memcpy_fromio() and friends instead, that's what they're there for. I believe Arnd was working on this? Your patch is only a partial solution, you'd need -mno-multiple -mno-algebraic -mno-dcbz too (and two of those don't even exist). Segher