]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: lib: memcpy: Restore NOP on delay slot before returning to caller
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 17 Nov 2014 09:32:38 +0000 (09:32 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 19 Nov 2014 17:22:08 +0000 (18:22 +0100)
commitb5844ac0813d4462f8de0b544b2143f232673ed1
tree727f8e0d2a9fddc98072151c052686df6498e7ed
parent1fbccaecfdf3afd853b21fd8294ad3c8bb821017
MIPS: lib: memcpy: Restore NOP on delay slot before returning to caller

Commit 990b5a249eac86 ("MIPS: lib: memcpy: Use macro to build the
copy_user code") switched to a macro in order to build the memcpy
symbols in preparation for the EVA support. However, this commit
also removed the NOP instruction after the 'jr ra' when returning
back to the caller. This had no visible side-effects since the next
instruction was a load to the t0 register which was already in the
clobbered list, but it may have undesired effects in the future
if some other code is introduced in between the .Ldone and
the .Ll_exc_copy labels.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: <stable@vger.kernel.org> # v3.15+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8512/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/memcpy.S