GPF problem

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
jrfritz

GPF problem

Post by jrfritz »

Just after I enable interrupts, I get a GPF ( my IDT handles it ).

My code is in the "Some IDT code...In C" thread.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:GPF problem

Post by df »

try setting all your IRQ calls to a dead IRET only and see if it still happens...
-- Stu --
jrfritz

Re:GPF problem

Post by jrfritz »

I didn't put in ints for IRQ's. I only put up enough stuff for handling exceptions.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:GPF problem

Post by df »

uh, IRQs file automatically, if you dont have them pointed to IRETS, of course they will crash when you enable interrupts!!!

have a look at the msg I sent, the updated zip has working IDT code that does not GPF...
-- Stu --
jrfritz

Re:GPF problem

Post by jrfritz »

Ok.......
jrfritz

Re:GPF problem

Post by jrfritz »

Just to let you know, when I had IRQs un remapped, I still got a GPF so adding IRQs into my IDT won't help. But I will try that and you code.
whyme_t

Re:GPF problem

Post by whyme_t »

For exceptions 8,10,11,12,13 and 14, did you drop the Error code?

Code: Select all

_defaultHandler:
    pusha
    call _default_isr
    popa
iret

__defaultHandlerEC:
    pusha
    call _default_isr
    popa
    add esp, $4
iret
jrfritz

Re:GPF problem

Post by jrfritz »

No...i'll try that.
jrfritz

Re:GPF problem

Post by jrfritz »

DF...you where right...IRQs fired...and my IDT is at 100% working! ( for the moment ;) )

<page of smilies> ( I didn't actually post a page of them so this thread won't crash ;) )
jrfritz

Re:GPF problem

Post by jrfritz »

TY Code Slasher, DF, whyme_t!
Post Reply