ARM: 6006/1: ARM: Use the correct NOP size in memmove for Thumb-2 kernel builds
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 29 Mar 2010 09:29:46 +0000 (10:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 29 Mar 2010 16:33:33 +0000 (17:33 +0100)
commitfd522a8dec11a08b5fdd23982193808e268be19e
tree0eb958250db72b19ff2e9da63c432e19be0122bb
parent782a0fd16723bfc0e765d789e82853d5dc424e76
ARM: 6006/1: ARM: Use the correct NOP size in memmove for Thumb-2 kernel builds

When compiling the kernel to Thumb-2, using a 16-bit NOP in the
memmove() implementation causes the preceding ADD PC instruction to
branch incorrectly in the middle of a 32-bit LDR or STR instruction. The
memmove() code is now similar to the memcpy() template.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/memmove.S