From: Rob Radez Date: Tue, 16 Nov 2004 02:11:34 +0000 Subject: Re: initrd testing [possible solution] Message-Id: <20041116021134.GA12529@osinvestor.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org On Mon, Nov 15, 2004 at 03:56:03PM -0800, William Lee Irwin III wrote: > On Sun, 14 Nov 2004 23:16:40 -0500 (EST) Jurij Smakov wrote: > > > --- build-sparc32.orig/include/asm-sparc/string.h 2004-08-14 01:36:11.000000000 -0400 > > > +++ build-sparc32/include/asm-sparc/string.h 2004-11-14 22:09:49.000000000 -0500 > > > @@ -40,6 +40,9 @@ > > > > > > if(n <= 32) { > > > __builtin_memcpy(to, from, n); > > > + } else if (((unsigned int) to & 7) != 0) { > > > + /* Destination is not aligned on the double-word boundary */ > > > + __memcpy(to, from, n); > > > } else { > > > switch(n) { > > > case PAGE_SIZE: > > On Mon, Nov 15, 2004 at 03:40:23PM -0800, David S. Miller wrote: > > This patch is perfectly fine, good catch. > > wli, you got this? > > Absolutely. I was looking at something like this; do we lose the benefit that comes from knowing that n is a constant and if so, should we delete the preprocessing macro that checks if n is constant? Rob