9
0
Fork 0
barebox/arch/arm/lib
Nicolas Pitre 4586f9626b ARM: fix the memset fix
From Kernel commit 418df63a ARM: 7670/1: fix the memset fix

| Commit 455bd4c430b0 ("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>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-05-23 08:27:57 +02:00
..
.gitignore rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
Makefile ARM: Automatically determine malloc size 2013-02-04 15:52:41 +01:00
armlinux.c ARM bootm: Switch initrd support to unflattened tree 2013-03-06 11:41:29 +01:00
ashldi3.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ashrdi3.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
barebox.lds.S Merge branch 'for-next/relocate' 2013-04-04 14:20:42 +02:00
bootm.c of: remove unused libfdt 2013-03-06 11:41:29 +01:00
bootu.c of: make of_get_fixed_tree more universally usable 2013-01-11 14:08:30 +01:00
bootz.c of: make of_get_fixed_tree more universally usable 2013-01-11 14:08:30 +01:00
copy_template.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
div0.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
findbit.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
io-readsb.S ioreadsb: put the whole ioreadsb function into the .text.readsb section 2010-02-16 21:49:33 +01:00
io-readsl.S Add IO string functions to also handle 32 bit IO locations 2009-07-01 10:45:21 +02:00
io-readsw-armv4.S Remove all ARM __raw_* functions. They are mixed all over 2009-07-01 14:35:35 +02:00
io-writesb.S Remove all ARM __raw_* functions. They are mixed all over 2009-07-01 14:35:35 +02:00
io-writesl.S Add IO string functions to also handle 32 bit IO locations 2009-07-01 10:45:21 +02:00
io-writesw-armv4.S ARM: Separate assembler functions into their own section 2012-07-23 23:57:44 +02:00
io.c ARM: import memcpy_from/toio and memset_io from linux 2012-01-02 12:08:24 +01:00
lib1funcs.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
lshrdi3.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
memcpy.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
memset.S ARM: fix the memset fix 2013-05-23 08:27:57 +02:00
module.c module support for arm 2007-10-03 21:09:00 +02:00
runtime-offset.S ARM: Add relocatable binary support 2013-03-07 12:38:01 +01:00
unwind.c include asm/sections.h instead of asm-generic/sections.h 2013-03-10 11:05:46 +01:00