]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:52:06 +0000 (20:52 -0700)
commit672f42875d1ad80c6f7c58db3a6dcf5b34a57e7c
tree3dd43076ab3b9977f36d61ee857c0c8c0af1b634
parent80e2e4be68de3ab6ae1c93830c786b50f8fa017d
MIPS: Replace add and sub instructions in relocate_kernel.S with addiu

commit a4504755e7dc8d43ed2a934397032691cd03adf7 upstream.

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: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10558/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kernel/relocate_kernel.S