Mr_Spam wrote:
what about writing the IDT directly in asm? when i call an int instruction from within my kernel, the compputer resets..so theres probibly something wrong in my IDT.
so, an example of some IDT entry's in asm would look like?
dd isr_pointer0, isr_pointer1, isr_pointer2, isr_pointer3, isr_pointer4
or will that not work?
The IDT entries is 8 byte wide.
The first word is the lower word of the Interrupt handler offset (the entry point for the interrupt).
The second word is the selector which the offset is located within.
The byte followed should be zero, according to what I've read.
Then a flag-byte is followed and the entry ends with the higher word of the offset to the handler...
Sorry if it was not that good as an explanation... is a bit tired...