]> git.karo-electronics.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:31:41 +0000 (00:31 +0200)
commitb56767539680b34dc2456c84eeeb6489e98fe2e2
treea51fa7719591719d3f8549b053e85afc67af20d0
parent9c6adeb1011ae9192fb9d9ff8627013c733a8ab6
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