diff options
author | Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> | 2008-04-17 23:35:13 +0900 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-18 00:47:29 -0700 |
commit | 43c509254fab375c49936498da944658117ed07c (patch) | |
tree | 8b730dcbc1498dee9303af405099d32aaa3f79bb /cpu/mips/start.S | |
parent | 7ce63709828d37b08866e537339a169bd0db2bd3 (diff) | |
download | u-boot-imx-43c509254fab375c49936498da944658117ed07c.zip u-boot-imx-43c509254fab375c49936498da944658117ed07c.tar.gz u-boot-imx-43c509254fab375c49936498da944658117ed07c.tar.bz2 |
Use jr as register jump instruction
Current assembler codes are inconsistent in the way of register jump
instruction usage; some use jr, some use j. Of course GNU as allows both
usages, but as can be expected from `Jump Register' the mnemonic `jr' is
more intuitive than `j'. For example, Linux doesn't have `j <reg>' usage
at all.
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Diffstat (limited to 'cpu/mips/start.S')
-rw-r--r-- | cpu/mips/start.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/mips/start.S b/cpu/mips/start.S index baac2ce..6e1a78c 100644 --- a/cpu/mips/start.S +++ b/cpu/mips/start.S @@ -286,7 +286,7 @@ reset: la sp, 0(t0) la t9, board_init_f - j t9 + jr t9 nop /* @@ -342,7 +342,7 @@ relocate_code: /* Jump to where we've relocated ourselves. */ addi t0, a2, in_ram - _start - j t0 + jr t0 nop .gpword _GLOBAL_OFFSET_TABLE_ /* _GLOBAL_OFFSET_TABLE_ - _gp */ @@ -387,7 +387,7 @@ in_ram: move a0, a1 la t9, board_init_r - j t9 + jr t9 move a1, a2 /* delay slot */ .end relocate_code |