You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
9 years ago
..
LzmaDecode.c ar71xx: add lzma loader 13 years ago
LzmaDecode.h ar71xx: add lzma loader 13 years ago
LzmaTypes.h ar71xx: add lzma loader 13 years ago
Makefile ar71xx: fix build of lzma-loader with binutils 2.25.1 9 years ago
ar71xx_regs.h ar71xx: image: stop the switch from the lzma-loader on the TL-WR1043ND 12 years ago
board.c ar71xx: image: stop the switch from the lzma-loader on the TL-WR1043ND 12 years ago
cache.c ar71xx: add lzma loader 13 years ago
cache.h ar71xx: add lzma loader 13 years ago
cacheops.h ar71xx: add lzma loader 13 years ago
config.h ar71xx: add lzma loader 13 years ago
cp0regdef.h ar71xx: add lzma loader 13 years ago
head.S ar71xx/lzma-loader: fix O32 ABI conformance 9 years ago
loader.c ar71xx: fix lzma-loader kernel command line passing 9 years ago
loader.lds ar71xx: add lzma loader 13 years ago
loader2.lds ar71xx/image: relink loader.elf image to LOADADDR 12 years ago
lzma-data.lds ar71xx: add lzma loader 13 years ago
printf.c ar71xx: add lzma loader 13 years ago
printf.h ar71xx: add lzma loader 13 years ago