im trying to make my own kernel.... my kernel is loaded through grub...
i tried creating the gdt and idt for myself...
i dont know how to test the gdt and as far as the idt is concerned it failed to capture the division by zero error ...

source code - https://github.com/pawangogna/pkern

any help regarding this is appreciated ...
also can i run my idt without creating a gdt since my gdt is already provided by grub !

P.S. i am following this tutorial http://www.osdever.net/bkerndev/Docs/idt.htm