]> xenbits.xensource.com Git - people/vhanquez/xen.git/commit
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)
commita4b4dbb872f94349809c60f2338c5f8b80a2a2cd
treee614a4066bd9cf5c15aed09ee6e5bbf90552bb13
parent3099bc9be7962056969a8c55449bf770cf66d8fb
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