u-boot-brain/arch/mips/cpu
Gabor Juhos 6d86227880 MIPS: xburst: 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>
Cc: Xiangfu Liu <xiangfu@openmobilefree.net>
2013-01-30 23:33:27 +01:00
..
mips32 MIPS: simplify relocated _G_O_T_ address calculation 2013-01-30 23:32:52 +01:00
mips64 MIPS: simplify relocated _G_O_T_ address calculation 2013-01-30 23:32:52 +01:00
xburst MIPS: xburst: simplify relocation offset calculation 2013-01-30 23:33:27 +01:00