diff options
author | Jayachandran C <jchandra@broadcom.com> | 2013-06-10 06:41:05 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-13 15:46:42 (GMT) |
commit | fd5f527cc58f7112f0d2c3cf2c29ae3ea5417de5 (patch) | |
tree | 5c03ffb32ae4ec74fb59491282b9f1cd3b190952 /arch/mips | |
parent | 919f9abb3723f088290c62648b12fbfc7600d923 (diff) | |
download | linux-fd5f527cc58f7112f0d2c3cf2c29ae3ea5417de5.tar.xz |
MIPS: Netlogic: use branch instead of jump
Fix an issue in the reset code. Since this code is copied to the
reset vector, using 'j' for looping is not correct. Use relative
branch 'b'.
Update the usage of 'j' in smpboot.S to be consistent although it
is not a bug there.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5427/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/netlogic/common/reset.S | 2 | ||||
-rw-r--r-- | arch/mips/netlogic/common/smpboot.S | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/netlogic/common/reset.S b/arch/mips/netlogic/common/reset.S index b11691c..0ebd50a 100644 --- a/arch/mips/netlogic/common/reset.S +++ b/arch/mips/netlogic/common/reset.S @@ -226,7 +226,7 @@ EXPORT(nlm_boot_siblings) sw t2, 0(t1) /* Wait until NMI hits */ 3: wait - j 3b + b 3b nop /* diff --git a/arch/mips/netlogic/common/smpboot.S b/arch/mips/netlogic/common/smpboot.S index 6029d1b..528c46c 100644 --- a/arch/mips/netlogic/common/smpboot.S +++ b/arch/mips/netlogic/common/smpboot.S @@ -137,7 +137,7 @@ NESTED(nlm_rmiboot_preboot, 16, sp) mtcr t1, t0 /* update core control */ 1: wait - j 1b + b 1b nop END(nlm_rmiboot_preboot) __FINIT |