]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MIPS: __strncpy_from_user_asm CPU_DADDI_WORKAROUNDS bug fix
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 4 Apr 2014 02:32:29 +0000 (03:32 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 May 2014 22:29:38 +0000 (00:29 +0200)
commit465ca5d6a06bfab861b65bb6b54dca170564326b
treea51fa7719591719d3f8549b053e85afc67af20d0
parent2db4bc3418c43f1e810b304c48f8ddff2535075b
MIPS: __strncpy_from_user_asm CPU_DADDI_WORKAROUNDS bug fix

This corrects assembler warnings and broken code generated in
__strncpy_from_user_asm:

arch/mips/lib/strncpy_user.S: Assembler messages:
arch/mips/lib/strncpy_user.S:52: Warning: Macro instruction expanded into
multiple instructions in a branch delay slot

with the CPU_DADDI_WORKAROUNDS option set.  The function schedules delay
slots manually where there is really no need to as GAS is happy to do it
all itself, so undo it all and remove `.set noreorder'.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6685/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/strncpy_user.S