]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:12 +0000 (15:57 -0800)
commit2782ec76ca4c8760f12426502588b9e1d3c6cd84
tree319982115a0ab8f84c11c82a82b3e8b17f9c9e84
parent3c9de33b93b8681566ae82526662004bea516398
MIPS: lib: memcpy: Restore NOP on delay slot before returning to caller

commit 51b1029d9966060c6ad02030e6f251425b4f06c1 upstream.

Commit cf62a8b8134dd3 ("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: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8512/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/lib/memcpy.S