linux-mips
[Top] [All Lists]

Re: [MIPS] Check FCSR for pending interrupts before restoring from a con

To: "Atsushi Nemoto" <anemo@mba.ocn.ne.jp>
Subject: Re: [MIPS] Check FCSR for pending interrupts before restoring from a context.
From: "Franck Bui-Huu" <vagabon.xyz@gmail.com>
Date: Wed, 14 Feb 2007 09:34:53 +0100
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, macro@linux-mips.org
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J0rXuPp41phMBkm37emp7+DJf7yLVbJ9M5VSXpZbtq/Ql2ZCzJkFC/BGmzX0hNLlQgS0JneXYVQA0K6d2XV9+KaahwMbfr/rsLY3CC9ETjVuURAW1b2vNTJypVsctKlh29N5+pinOlTAabLb50nQA+kHTc+ztQxoQQJLN8e0wf8=
In-reply-to: <20070214.170420.85684996.nemoto@toshiba-tops.co.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cda58cb80702080830n44627bafw88b0b6620eefb693@mail.gmail.com> <20070209.015405.08319291.anemo@mba.ocn.ne.jp> <20070209.130316.14978798.nemoto@toshiba-tops.co.jp> <20070214.170420.85684996.nemoto@toshiba-tops.co.jp>
Sender: linux-mips-bounce@linux-mips.org
Hi Atsushi,

On 2/14/07, Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
Revised again.  Fix check_and_restore_fp_context32 and rediff against
current git.


Subject: Check FCSR for pending interrupts, alternative version


[snip]

diff --git a/arch/mips/kernel/signal-common.h b/arch/mips/kernel/signal-common.h
index fdbdbdc..297dfcb 100644
--- a/arch/mips/kernel/signal-common.h
+++ b/arch/mips/kernel/signal-common.h
@@ -31,4 +31,7 @@ extern void __user *get_sigframe(struct k_sigaction *ka, 
struct pt_regs *regs,
  */
 extern int install_sigtramp(unsigned int __user *tramp, unsigned int syscall);

+/* Check and clear pending FPU exceptions in saved CSR */
+extern int fpcsr_pending(unsigned int __user *fpcsr);
+

Just my 2 cents: This looks like the wrong place for this fpu
prototype. I mean shouldn't it belong to a fpu header file or
something else ?
--
              Franck

<Prev in Thread] Current Thread [Next in Thread>