]> 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)
commitd14487e2235cf672385ecc4ec33ab87db3456080
tree727f8e0d2a9fddc98072151c052686df6498e7ed
parent74b24e0de27ec19f9c12faa1273fa2e87ad7a483
MIPS: lib: memcpy: Restore NOP on delay slot before returning to caller

Commit 297fe4ad1503a1 ("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