u-boot/arch/mips
Gabor Juhos 248fe03f53 MIPS: start.S: simplify relocation offset calculation
The current code uses four instructions and a
temporary register to calculate the relocation
offset and to adjust the gp register.

The relocation offset can be calculated directly
from the CONFIG_SYS_MONITOR_BASE constant and from
the destination address. The resulting offset can
be used to adjust the gp pointer.

This approach makes the code a bit simpler because
it needs two instructions only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
2013-01-27 16:40:07 +01:00
..
cpu MIPS: start.S: simplify relocation offset calculation 2013-01-27 16:40:07 +01:00
include/asm MIPS: convert IO port accessor functions to 'static inline' 2013-01-22 21:07:19 +01:00
lib MIPS: bootm.c: add support for 'prep' and 'go' subcommands 2013-01-16 10:52:07 +01:00
config.mk MIPS: move CONFIG_STANDALONE_LOAD_ADDR to CPU config makefiles 2012-08-24 00:34:47 +02:00