From: Ian Campbell Subject: Re: [PATCH] arm: fix unaligned memcpy() and memmove() Date: Mon, 27 Feb 2012 17:05:54 +0000 Message-ID: <1330362354.8557.306.camel@zakaz.uk.xensource.com> References: <1330109153-5531-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1330109153-5531-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-02-24 at 18:45 +0000, David Vrabel wrote: > From: David Vrabel > > If memcpy() and memmove() were used with source and destination of > different alignment then the result would be all jumbled. > > When their implementations were imported from Linux some macros for > big-endian platforms were taken instead of the correct little-endian > ones (specifically, the push and pull macros in assembler.h). > > Fix this by taking Linux's arch/include/asm/assembler.h as-is and > making only the minimum changes necessary for Xen. > > Signed-off-by: David Vrabel > Cc: Ian Campbell Committed, thanks!