openwrt/target/linux/ar71xx/image/lzma-loader/src
Gabor Juhos 55b0e261a4 ar71xx/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>

SVN-Revision: 48279
2016-01-17 15:29:03 +00:00
..
ar71xx_regs.h ar71xx: image: stop the switch from the lzma-loader on the TL-WR1043ND 2012-08-02 09:54:41 +00:00
board.c ar71xx: image: stop the switch from the lzma-loader on the TL-WR1043ND 2012-08-02 09:54:41 +00:00
cache.c ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
cache.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
cacheops.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
config.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
cp0regdef.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
head.S ar71xx/lzma-loader: fix O32 ABI conformance 2016-01-17 15:29:03 +00:00
loader2.lds ar71xx/image: relink loader.elf image to LOADADDR 2012-11-20 12:17:41 +00:00
loader.c ar71xx: fix lzma-loader kernel command line passing 2015-08-02 15:06:54 +00:00
loader.lds ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
lzma-data.lds ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
LzmaDecode.c ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
LzmaDecode.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
LzmaTypes.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
Makefile ar71xx: fix build of lzma-loader with binutils 2.25.1 2015-09-12 18:57:37 +00:00
printf.c ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00
printf.h ar71xx: add lzma loader 2011-12-05 14:52:25 +00:00