I'm writing a small OS that runs under protected mode. I am coming to a point where I want to load a custom interrupt descriptor table, and I don't know where to start. I have read some stuff on the OS Dev wiki, but there are a few questions that I need answered.
On the OS Dev wiki, it says that the first 32 (0-31) interrupts are reserved and used by the CPU, as exceptions, so don't use those for APIs or IRQs.
The thing is that, if I am loading my custom interrupt table, don't I have to provide entries for all of those interrupts?
Also, the wiki states that the BIOS maps IRQ0-7 to interrupts 8-15. If this is the case, wouldn't the IRQ interrupts conflict with the reserved interrupts?
Is there something that I am not getting? Are interrupts 0-31 in a separate table or something? Someone please point me in the right direction and clear things up.