code double faults when in a while(1); loop
code double faults when in a while(1); loop
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.
"For those about to rock, we salute you"
-Brian Johnson
-Brian Johnson
Re: code double faults when in a while(1); loop
Make sure interrupts are disabled.
If a trainstation is where trains stop, what is a workstation ?
- NickJohnson
- Member
- Posts: 1249
- Joined: Tue Mar 24, 2009 8:11 pm
- Location: Sunnyvale, California
Re: code double faults when in a while(1); loop
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
That seems like it is just avoiding the problem.
"For those about to rock, we salute you"
-Brian Johnson
-Brian Johnson
Re: code double faults when in a while(1); loop
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.