]> git.baikalelectronics.ru Git - kernel.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)
commit20aa008af077fb32d640a64c89386cc51b711c7e
treea51fa7719591719d3f8549b053e85afc67af20d0
parent77ae6e588f2fbfafbeb42c044fcf12a7473e5d13
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