GPF

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
User avatar
octa
Member
Member
Posts: 50
Joined: Sat Jun 28, 2008 9:15 am

GPF

Post by octa »

I get a GPF after setting IDT
on debugging
i got
jmp oxfffffffe

why is this ? why does a jmp to this address come ?
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: GPF

Post by Combuster »

Your "debugging" is most likely off. What did you do to get your debugger say JMP 0xfffffffe, because I'm pretty sure that isn't there.

My guess is that you're looking at a JMP $, or equivalently, a while(1);, which also means that you are debugging the GPF handler rather than the actual fault.
"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: GPF

Post by JohnnyTheDon »

prave wrote:I get a GPF after setting IDT
on debugging
i got
jmp oxfffffffe
That is actually a negative number, pointing to the jmp instruction. The bochs debugger doesn't do signs.

The most likely culprit is a hardware interrupt. Have you moved/masked the PIC? Have you set up your interrupt service routines? Did you do an STI?
Post Reply