From: Jun Sun <jsun@mvista.com>
To: Vivien Chappelier <vivienc@nerim.net>
Cc: Ralf Baechle <ralf@oss.sgi.com>,
linux-mips@linux-mips.org, jsun@mvista.com
Subject: Re: [PATCH 2.5] clear USEDFPU in copy_thread
Date: Fri, 7 Feb 2003 10:46:21 -0800 [thread overview]
Message-ID: <20030207104621.L13258@mvista.com> (raw)
In-Reply-To: <20030206164342.G13258@mvista.com>; from jsun@mvista.com on Thu, Feb 06, 2003 at 04:43:42PM -0800
On Thu, Feb 06, 2003 at 04:43:42PM -0800, Jun Sun wrote:
>
> You should *not* clear USEDFPU in copy_thread(). Imagine
> you assign a floating point variable f=0.3, then do fork()
> and then in the child process, alas, f is undefined (zero
> most likely).
>
> If you really want to do it, it should be in start_thread().
>
This is plain stupid comment! I was thinking about task->used_math
flag. Please igore it.
> I am still curious whether this is a bug in i386 as well or they do
> clear the flag in some non-obvious way. Note that the unlazy_fpu()
> in copy_thread won't do it. It only clears the current process's
> USEDFPU flag, while the child process's flag is set way back in
> copy_flags() calls inside do_fork().
>
But this comment still makes sense...
Jun
next prev parent reply other threads:[~2003-02-07 18:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-04 22:54 [PATCH 2.5] clear USEDFPU in copy_thread Vivien Chappelier
2003-02-07 0:43 ` Jun Sun
2003-02-07 1:20 ` Juan Quintela
2003-02-07 18:46 ` Jun Sun [this message]
2003-02-07 22:13 ` Vivien Chappelier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030207104621.L13258@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@oss.sgi.com \
--cc=vivienc@nerim.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.