arm: fix unaligned memcpy() and memmove()
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 27 Feb 2012 17:05:18 +0000 (17:05 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 27 Feb 2012 17:05:18 +0000 (17:05 +0000)
commitce67d283a87997052ad42f93027de2493e167803
treee614a4066bd9cf5c15aed09ee6e5bbf90552bb13
parentf2f180d09c3b7484c654398faf561341e732a729
arm: fix unaligned memcpy() and memmove()

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 <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <Ian.Campbell@citrix.com>
xen/arch/arm/lib/assembler.h