Random Double-Fault in 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
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Random Double-Fault in Bochs

Post by JohnnyTheDon »

When enabling interrupts on my BSP on bochs, I get a double-fault. It doesn't seem to be from enabling interrupts, it just always give me a double-fault exception even though no other exceptions have been triggered and interrupts have been masked during the runtime of my OS. If I handle the double-fault by doing nothing, it continues on as if nothing happens. This doesn't seem to happen on my APs. Any insights?
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: Random Double-Fault in Bochs

Post by Combuster »

Have you remapped the PIC (or configured the IOAPIC for MP systems)
Also, does the "double fault" push an errorcode? If it doesn't it is not a double fault but an external interrupt.
"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 ]
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: Random Double-Fault in Bochs

Post by JohnnyTheDon »

Oh, that must be it, I haven't yet configured the IOAPIC. I'll try configuring the IOAPIC first.
Post Reply