[Top] [All Lists]

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

To: "Atsushi Nemoto" <>
Subject: Re: [MIPS] Check FCSR for pending interrupts before restoring from a context.
From: "Franck Bui-Huu" <>
Date: Wed, 14 Feb 2007 09:34:53 +0100
Domainkey-signature: a=rsa-sha1; c=nofws;; 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: <>
Original-recipient: rfc822;
References: <> <> <> <>
Hi Atsushi,

On 2/14/07, Atsushi Nemoto <> wrote:
Revised again.  Fix check_and_restore_fp_context32 and rediff against
current git.

Subject: Check FCSR for pending interrupts, alternative version


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 ?

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