Received: from mailapp01.imgtec.com ([195.59.15.196]:23124 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27006837AbbCCHWb57SRs (ORCPT ); Tue, 3 Mar 2015 08:22:31 +0100 Date: Tue, 3 Mar 2015 07:22:25 +0000 From: Markos Chandras Subject: Re: [PATCH] MIPS: Call mips_set_personality_fp() in all O32 cases Message-ID: <20150303072225.GA8339@mchandras-linux.le.imgtec.org> References: <1425347348-12334-1-git-send-email-chenhc@lemote.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <1425347348-12334-1-git-send-email-chenhc@lemote.com> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Huacai Chen Cc: Ralf Baechle , "Steven J. Hill" , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu Message-ID: <20150303072225.WDCO32TxwWe6L_9cAkQlkx9jo0B6lF2S2LXCyFHK4ak@z> On Tue, Mar 03, 2015 at 09:49:08AM +0800, Huacai Chen wrote: > Commit 46490b572544f (MIPS: kernel: elf: Improve the overall ABI and > FPU mode checks) assumes mips_set_personality_fp() is only needed in > CONFIG_MIPS_O32_FP64_SUPPORT case. However, this assumption is wrong, > because O32 binaries always need the correct thread flags to set > FR/FRE, whether CONFIG_MIPS_O32_FP64_SUPPORT is configured or not. > > Signed-off-by: Huacai Chen > --- > arch/mips/kernel/elf.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/mips/kernel/elf.c b/arch/mips/kernel/elf.c > index d2c09f6..cec5bc3 100644 > --- a/arch/mips/kernel/elf.c > +++ b/arch/mips/kernel/elf.c > @@ -245,7 +245,7 @@ void mips_set_personality_fp(struct arch_elf_state *state) > * not be worried about N32/N64 binaries. > */ > > - if (!config_enabled(CONFIG_MIPS_O32_FP64_SUPPORT)) > + if (!config_enabled(CONFIG_32BIT) && !config_enabled(CONFIG_MIPS32_O32)) > return; > > switch (state->overall_fp_mode) { > -- > 1.7.7.3 > > > > Hi, I have already posted a patch for this problem. Could you try that instead? http://patchwork.linux-mips.org/patch/9344/ -- markos