openwrtv4/target/linux/brcm63xx
John Crispin 01ca7a34f0 brcm63xx/lzma-loader: fix O32 ABI conformance
According to the calling convention of the o32 ABI the caller
function must reserve stack space for $a0-$a3 registers in case
the callee needs to save its arguments.

The assembly code of the loader does not reserve stack space for
these registers thus when the 'loader_main' function needs to save
its arguments, those will be stored in the 'workspace' area instead
of the stack.

Because the workspace area is also used by other part of the code, the
saved register values gets overwritten and this often leads to failed
kernel boots.

Fix the code to reserve stack space for the registers to avoid this
error.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
[noltari: apply the fix for brcm63xx too]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48979
2016-03-10 19:10:54 +00:00
..
base-files brcm63xx: add support for Huawei HG622 2016-01-18 10:47:23 +00:00
dts brcm63xx: add support for Huawei HG622 2016-01-18 10:47:23 +00:00
generic brcm63xx: move generic profiles to top dir and remove smp profiles 2014-08-18 21:50:37 +00:00
image brcm63xx/lzma-loader: fix O32 ABI conformance 2016-03-10 19:10:54 +00:00
patches-4.1 brcm63xx: add support for Huawei HG622 2016-01-18 10:47:23 +00:00
patches-4.4 kernel: update kernel 4.4 to version 4.4.3 2016-02-25 21:54:39 +00:00
profiles brcm63xx: add support for Huawei HG622 2016-01-18 10:47:23 +00:00
smp brcm63xx: move generic profiles to top dir and remove smp profiles 2014-08-18 21:50:37 +00:00
config-4.1 brcm63xx: disable the openwrt commandline hack 2015-08-30 12:18:00 +00:00
config-4.4 brcm63xx: add linux 4.4 support 2015-12-02 22:24:46 +00:00
Makefile brcm63xx: switch to 4.1 2015-07-15 14:42:04 +00:00
modules.mk kernel: remove kernel module checks/dependencies for 3.14 2015-04-11 10:43:46 +00:00