openwrtv3/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
cache.h
cacheops.h
config.h
cp0regdef.h
head.S ar71xx/lzma-loader: fix O32 ABI conformance 2016-01-17 15:29:03 +00:00
loader.c ar71xx: fix lzma-loader kernel command line passing 2015-08-02 15:06:54 +00:00
loader.lds
loader2.lds ar71xx/image: relink loader.elf image to LOADADDR 2012-11-20 12:17:41 +00:00
lzma-data.lds
LzmaDecode.c
LzmaDecode.h
LzmaTypes.h
Makefile ar71xx: fix build of lzma-loader with binutils 2.25.1 2015-09-12 18:57:37 +00:00
printf.c
printf.h