* when does do_fpe() get called? (or when does FPE happen?)
@ 2003-01-28 3:04 Jun Sun
2003-01-28 3:37 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: Jun Sun @ 2003-01-28 3:04 UTC (permalink / raw)
To: linux-mips; +Cc: jsun
Can someone enlighten me a little? I am trying
to figure out what the FPU state should be (or can be) when
we are inside do_fpe() routine.
Jun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: when does do_fpe() get called? (or when does FPE happen?)
2003-01-28 3:04 when does do_fpe() get called? (or when does FPE happen?) Jun Sun
@ 2003-01-28 3:37 ` Ralf Baechle
2003-01-28 17:37 ` Jun Sun
0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2003-01-28 3:37 UTC (permalink / raw)
To: Jun Sun; +Cc: linux-mips
On Mon, Jan 27, 2003 at 07:04:23PM -0800, Jun Sun wrote:
> Can someone enlighten me a little? I am trying
> to figure out what the FPU state should be (or can be) when
> we are inside do_fpe() routine.
Checkout the various flags in $fcr31. Whenever one of the enabled
exceptions is triggered we get to handle_fpe via do_fpe. In addition
the unimplemented exception can also result in invocation of do_fpe.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: when does do_fpe() get called? (or when does FPE happen?)
2003-01-28 3:37 ` Ralf Baechle
@ 2003-01-28 17:37 ` Jun Sun
2003-01-28 17:45 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: Jun Sun @ 2003-01-28 17:37 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, jsun
On Tue, Jan 28, 2003 at 04:37:44AM +0100, Ralf Baechle wrote:
> On Mon, Jan 27, 2003 at 07:04:23PM -0800, Jun Sun wrote:
>
> > Can someone enlighten me a little? I am trying
> > to figure out what the FPU state should be (or can be) when
> > we are inside do_fpe() routine.
>
> Checkout the various flags in $fcr31. Whenever one of the enabled
> exceptions is triggered we get to handle_fpe via do_fpe. In addition
> the unimplemented exception can also result in invocation of do_fpe.
>
So it seems safe to assume FPU should have been enabled when we get
here, right?
Jun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: when does do_fpe() get called? (or when does FPE happen?)
2003-01-28 17:37 ` Jun Sun
@ 2003-01-28 17:45 ` Ralf Baechle
0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2003-01-28 17:45 UTC (permalink / raw)
To: Jun Sun; +Cc: linux-mips
On Tue, Jan 28, 2003 at 09:37:42AM -0800, Jun Sun wrote:
> > > Can someone enlighten me a little? I am trying
> > > to figure out what the FPU state should be (or can be) when
> > > we are inside do_fpe() routine.
> >
> > Checkout the various flags in $fcr31. Whenever one of the enabled
> > exceptions is triggered we get to handle_fpe via do_fpe. In addition
> > the unimplemented exception can also result in invocation of do_fpe.
> >
>
> So it seems safe to assume FPU should have been enabled when we get
> here, right?
Yes, otherwise we'd get a coprocessur unusable exception.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-28 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28 3:04 when does do_fpe() get called? (or when does FPE happen?) Jun Sun
2003-01-28 3:37 ` Ralf Baechle
2003-01-28 17:37 ` Jun Sun
2003-01-28 17:45 ` Ralf Baechle
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.