From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Plan9/Bochs/kernel panic
Date: Tue, 11 Nov 2003 14:00:45 -0500 [thread overview]
Message-ID: <E1AJdl1-000LDQ-F1@t40.swtch.com> (raw)
In-Reply-To: Your message of "Tue, 11 Nov 2003 09:14:06 EST." <E1AJZHY-000Kxn-Jl@t40.swtch.com>
> Beyond that I'm not much help. Math emu means that the kernel
> got a floating point exception, which should not happen.
I tracked this down. It seems to be a bug in Bochs.
Real processors all let us turn off the FPU twice,
but if the FPU is already off, then Bochs causes an
exception when we "FWAIT" before turning it off again.
The Intel manual (I looked at the current online one
as well as an old 486 one) is very clear -- FWAIT causes
an exception if CR0.EM and CR0.TS are *both* set, whereas
Bochs causes an exception if *either* is set.
(To be fair, all the other floating point instructions
are supposed to cause the exception if *either* is set,
so it's not surprising that Bochs got this one exception
(no pun intended) wrong.)
Russ
next prev parent reply other threads:[~2003-11-11 19:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-11 9:34 Paul Swartz
2003-11-11 14:14 ` Russ Cox
2003-11-11 19:00 ` Russ Cox [this message]
[not found] ` <-280943911904599510@unknownmsgid>
2005-04-19 4:19 ` Russ Cox
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=E1AJdl1-000LDQ-F1@t40.swtch.com \
--to=rsc@swtch.com \
--cc=9fans@cse.psu.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).