]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7670/1: fix the memset fix
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 12 Mar 2013 12:00:42 +0000 (13:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 12 Mar 2013 12:18:47 +0000 (12:18 +0000)
commit8de27053865b35311a73482a60c6296a32a2dfc7
tree08fec3f519737b2341ac5f7dbeb394d10cbb0bbc
parent1ba645d043d97fd0e71a07155ed68e497b9ae268
ARM: 7670/1: fix the memset fix

Commit 1ba645d043d9 ("ARM: 7668/1: fix memset-related crashes caused by
recent GCC (4.7.2) optimizations") attempted to fix a compliance issue
with the memset return value.  However the memset itself became broken
by that patch for misaligned pointers.

This fixes the above by branching over the entry code from the
misaligned fixup code to avoid reloading the original pointer.

Also, because the function entry alignment is wrong in the Thumb mode
compilation, that fixup code is moved to the end.

While at it, the entry instructions are slightly reworked to help dual
issue pipelines.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/memset.S