u-boot-brain/arch/mips/cpu
Gabor Juhos 67d80c9f97 MIPS: start.S: don't save flush_cache parameters in advance
Saving the parameters in advance unnecessarily complicates
the code. The destination address is already saved in the
's2' register, and that register is not clobbered by the
copy loop. The size of the copied data can be computed
after the copy loop is done.

Change the code to compute the size parameter right
before calling flush_cache, and set the destination
address parameter in the delay slot of the actuall
call.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
2013-01-27 16:40:15 +01:00
..
mips32 MIPS: start.S: don't save flush_cache parameters in advance 2013-01-27 16:40:15 +01:00
mips64 MIPS: start.S: don't save flush_cache parameters in advance 2013-01-27 16:40:15 +01:00
xburst MIPS: start.S: fix boundary check in relocate_code 2013-01-27 16:39:43 +01:00