Jenifer De Jager
Jenifer De Jager

Reputation: 33

#GP on some ISRs, APIC and PIT not sending IRQs

I've been working on code to test the speed of the APIC using the PIT. There are several problems I can't figure out. First, when testing my ISRs for the two timers, I get general protection faults on the iretq instructions. Second, neither timer actually fires any interrupts. Any help on this would be much appreciated.

Link to the relevant file.

Upvotes: 0

Views: 93

Answers (1)

Jenifer De Jager
Jenifer De Jager

Reputation: 33

The general protection faults were caused by having an invalid CS register due to not reloading the CS register after loading the GDT. It's not in the code I linked to at all.

Upvotes: 1

Related Questions