diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-01-24 06:27:51 +0000 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2013-01-27 16:39:43 +0100 |
commit | 5b7dd8163d517c8f52971bc16fe92f831553d2bb (patch) | |
tree | 2f0e010789470130e582a5548d1641bc694b9d6d /arch/mips/cpu/mips32 | |
parent | 14fdd1a8bfd97de46042cda6086347b0d66461d4 (diff) | |
download | u-boot-imx-5b7dd8163d517c8f52971bc16fe92f831553d2bb.zip u-boot-imx-5b7dd8163d517c8f52971bc16fe92f831553d2bb.tar.gz u-boot-imx-5b7dd8163d517c8f52971bc16fe92f831553d2bb.tar.bz2 |
MIPS: start.S: fix boundary check in relocate_code
The loop code copies more data with one than
necessary due to the 'ble' instuction. Use the
'blt' instruction instead to fix that.
Due to the lack of suitable hardware the Xburst
specific code is compile tested only. However the
change is quite obvious.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Diffstat (limited to 'arch/mips/cpu/mips32')
-rw-r--r-- | arch/mips/cpu/mips32/start.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips/cpu/mips32/start.S index 22a9c1b..a4fc1ec 100644 --- a/arch/mips/cpu/mips32/start.S +++ b/arch/mips/cpu/mips32/start.S @@ -313,7 +313,7 @@ relocate_code: lw t3, 0(t0) sw t3, 0(t1) addu t0, 4 - ble t0, t2, 1b + blt t0, t2, 1b addu t1, 4 /* If caches were enabled, we would have to flush them here. */ |