MIPS: Replace add and sub instructions in relocate_kernel.S with addiu
authorJames Cowgill <James.Cowgill@imgtec.com>
Wed, 17 Jun 2015 16:12:50 +0000 (17:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2015 13:26:30 +0000 (15:26 +0200)
commita4504755e7dc8d43ed2a934397032691cd03adf7
treea93481bcfc12d75b55f6b2b0550411e3e9072df8
parent3aff47c062b944a5e1f9af56a37a23f5295628fc
MIPS: Replace add and sub instructions in relocate_kernel.S with addiu

Fixes the assembler errors generated when compiling a MIPS R6 kernel with
CONFIG_KEXEC on, by replacing the offending add and sub instructions with
addiu instructions.

Build errors:
arch/mips/kernel/relocate_kernel.S: Assembler messages:
arch/mips/kernel/relocate_kernel.S:27: Error: invalid operands `dadd $16,$16,8'
arch/mips/kernel/relocate_kernel.S:64: Error: invalid operands `dadd $20,$20,8'
arch/mips/kernel/relocate_kernel.S:65: Error: invalid operands `dadd $18,$18,8'
arch/mips/kernel/relocate_kernel.S:66: Error: invalid operands `dsub $22,$22,1'
scripts/Makefile.build:294: recipe for target 'arch/mips/kernel/relocate_kernel.o' failed

Signed-off-by: James Cowgill <James.Cowgill@imgtec.com>
Cc: <stable@vger.kernel.org> # 4.0+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10558/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/relocate_kernel.S