From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759482AbYDKKLr (ORCPT ); Fri, 11 Apr 2008 06:11:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757718AbYDKKLg (ORCPT ); Fri, 11 Apr 2008 06:11:36 -0400 Received: from mx1.redhat.com ([66.187.233.31]:32850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757449AbYDKKLf (ORCPT ); Fri, 11 Apr 2008 06:11:35 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1207885132.22001.85.camel@brick> References: <1207885132.22001.85.camel@brick> To: Harvey Harrison Cc: dhowells@redhat.com, Andrew Morton , LKML , linux-arch , Linus Torvalds Subject: Re: [PATCH 2/2] kernel: Move arches to use common unaligned access X-Mailer: MH-E 8.0.3+cvs; nmh 1.2-20070115cvs; GNU Emacs 23.0.50 Date: Fri, 11 Apr 2008 11:11:28 +0100 Message-ID: <15208.1207908688@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Harvey Harrison wrote: > -#ifndef _ASM_UNALIGNED_H > -#define _ASM_UNALIGNED_H > - > +#ifndef _ASM_FRV_UNALIGNED_H_ > +#define _ASM_FRV_UNALIGNED_H_ Why? > - * impractical. So, now we fall back to using memcpy. > + * impractical. So, now we fall back to using memmov. That's memmove, not memmov. Any why memmove, not memcpy? Is __tmp likely to overlap with *ptr? Also, for FRV, I think calling memmove/memcpy for MMU kernels may be the wrong thing to do... I'm sort of leaning towards doing the same thing as NOMMU kernels and just using your inline ones. The advantage of the inline ones is that they are quicker and probably involve fewer instructions executed; whereas using memcpy/memmove may end up with smaller, but slower code. Hmmm... Maybe key on CONFIG_CC_OPTIMIZE_FOR_SIZE? David