From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 19 Apr 2005 00:19:27 -0400 From: Russ Cox To: 9fans <9fans@cse.psu.edu> Subject: Re: [9fans] Plan9/Bochs/kernel panic In-Reply-To: <-280943911904599510@unknownmsgid> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <-280943911904599510@unknownmsgid> Topicbox-Message-UUID: 3b562200-ead0-11e9-9d60-3106f5b1d025 On 11/11/03, Russ Cox wrote: > 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. I tracked this down again (I had quite a sense of deja vu once I found the problem, but google failed me and I hadn't thought to look in my gmail). This time I fixed Plan 9 to work around it. There is a new /sys/src/9/pc/l.s on sources that avoids the FWAIT when the FPU is already off. With that change, Plan 9 boots in Bochs, though I suggest qemu with the kqemu module unless you are doing OS hacking and need Bochs's better debugging features. Russ