Page 1 of 1
code double faults when in a while(1); loop
Posted: Wed Jun 09, 2010 6:35 pm
by Gman
I recently got my IDT working, and when I call an interrupt it returns fine. But sometime in the middle of my while(1); loop a int 8 is called, which leads to many int 13. Does anyone know why this is happening? All the computer is doing is jumping back to itself.
Re: code double faults when in a while(1); loop
Posted: Wed Jun 09, 2010 7:04 pm
by gerryg400
Make sure interrupts are disabled.
Re: code double faults when in a while(1); loop
Posted: Wed Jun 09, 2010 7:05 pm
by NickJohnson
Have you remapped the PIC to not overlap with processor faults? Is there a valid interrupt handler set up for int 8?
Re: code double faults when in a while(1); loop
Posted: Wed Jun 09, 2010 7:05 pm
by Gman
That seems like it is just avoiding the problem.
Re: code double faults when in a while(1); loop
Posted: Wed Jun 09, 2010 7:06 pm
by Gigasoft
Have you sent a new ICW2 to the PIC? If not, IRQ 0 (which 8254 timer channel 0 is connected to) corresponds to interrupt vector 8, making it indistinguishable from a double fault.