Openwrt/target/linux
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
..
adm5120
adm8668
ar7
ar71xx ar71xx: add support for the Telldus TellStick ZNet Lite 2016-03-10 19:07:26 +00:00
arc770
archs38
arm64
at91
ath25
au1000
bcm53xx bcm53xx: update bcm47xx_sprom to the latest 4.6 queued version 2016-03-08 11:05:10 +00:00
brcm47xx brcm47xx: image: move disabled devices to the new building system 2016-03-09 06:34:29 +00:00
brcm63xx brcm63xx/lzma-loader: fix O32 ABI conformance 2016-03-10 19:10:54 +00:00
brcm2708 brcm2708: add Raspberry Pi 3 support 2016-03-08 18:11:55 +00:00
cns3xxx
gemini
generic kernel: backport bcma 4.6 changes for flashes 2016-03-07 23:09:26 +00:00
imx6
ipq806x
ixp4xx
kirkwood
lantiq lantiq: print profile name in dsl lucistat 2016-03-07 11:03:44 +00:00
malta kernel: add missing config options 2016-03-05 16:22:45 +00:00
mcs814x
mediatek
mpc85xx
mvebu
mxs kernel: update kernel 4.4 to version 4.4.4 2016-03-05 17:51:37 +00:00
netlogic
octeon
omap
omap24xx
orion
oxnas
ppc40x
ppc44x
ramips ramips: add support for Planex MZK-WDPR. 2016-03-08 18:11:59 +00:00
rb532
realview
sunxi
uml kernel: update kernel 4.4 to version 4.4.4 2016-03-05 17:51:37 +00:00
x86 kernel: add missing config options 2016-03-05 16:22:45 +00:00
xburst
zynq
Makefile