]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: asm: elf: Set O32 default FPU flags
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 26 Feb 2015 11:11:30 +0000 (11:11 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:20:12 +0000 (17:20 +0200)
commit5f067f5c16f357b62e9c1620f8a1368329541931
treea2b69637aff715cd9e7aab59c86692e1adcdac14
parente0c3678ae640db049f738f30b5f23cde740799ac
MIPS: asm: elf: Set O32 default FPU flags

Set good default FPU flags (FR0) for O32 binaries similar to what the
kernel does for the N64/N32 ones. This also fixes a regression
introduced in commit 46490b572544 ("MIPS: kernel: elf: Improve the
overall ABI and FPU mode checks") when MIPS_O32_FP64_SUPPORT is
disabled. In that case, the mips_set_personality_fp() did not set the
FPU mode at all because it assumed that the FPU mode was already set
properly. That led to O32 userland problems.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reported-by: Mans Rullgard <mans@mansr.com>
Fixes: 46490b572544 ("MIPS: kernel: elf: Improve the overall ABI and FPU mode checks")
Tested-by: Mans Rullgard <mans@mansr.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Matthew Fortune <Matthew.Fortune@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/9344/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/elf.h