Weird messages under Bochs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
leledumbo
Member
Member
Posts: 103
Joined: Wed Apr 23, 2008 8:46 pm

Weird messages under Bochs

Post by leledumbo »

Why do I get A LOT of
math_abort: MSDOS compatibility FPU exception
under Bochs?
Image to test: http://fpos.googlecode.com/files/fpos.zip
OrOS
Member
Member
Posts: 143
Joined: Sat Sep 08, 2007 11:26 pm
Location: Canada

Re: Weird messages under Bochs

Post by OrOS »


77 // MSDOS compatibility external interrupt (IRQ13)
78 BX_INFO (("math_abort: MSDOS compatibility FPU exception"));
79 DEV_pic_raise_irq(13);
It looks like your using the development version of Bochs. Your causing an FPU exception, and your apparently not handling it if your OS isn't raising a panic./
leledumbo
Member
Member
Posts: 103
Joined: Wed Apr 23, 2008 8:46 pm

Re: Weird messages under Bochs

Post by leledumbo »

It looks like your using the development version of Bochs
Is 2.3.7 a development version?
Your causing an FPU exception, and your apparently not handling it if your OS isn't raising a panic
Well... I don't think I've used any floating point thing in my OS. So how could that possible?
ru2aqare
Member
Member
Posts: 342
Joined: Fri Jul 11, 2008 5:15 am
Location: Hungary

Re: Weird messages under Bochs

Post by ru2aqare »

leledumbo wrote:
It looks like your using the development version of Bochs
Is 2.3.7 a development version?
Your causing an FPU exception, and your apparently not handling it if your OS isn't raising a panic
Well... I don't think I've used any floating point thing in my OS. So how could that possible?
Or you are raising IRQ14 (are you doing something with the hard disks?) and the PIC is not remapped.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Weird messages under Bochs

Post by Combuster »

If its your code, you should seriously consider setting up the FPU properly. Bochs gives you those messages when it is emulating an external FPU (either a 387 or a later processor in backwards compatibility mode). You should set CR0.NE (if I got the name correct) whenever possible to get the standard error handling via exceptions.

In MSDOS compatibility mode, FPU exceptions are routed off the CPU to the PIC and back to the CPU again. It isn't wrong, but isn't the best thing either. (and since its usually in error, Bochs complains about it)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply