im trying to make my own kernel….
my kernel is loaded through grub…which i suppose creates the gdt required for me…so i did not create the gdt myself and continued creating the idt …
now when i try a divide by zero exception my fault handling method is not called….
i have lidt in my asm file , set the entries into my idt, and after pushing all the registers, i call my fault handler which is never called !
is it possible to create an idt of your own using grub’s default gdt ?
or do i need to create the gdt too …
source code – https://github.com/pawangogna/pkern
P.S. i am following this tutorial http://www.osdever.net/bkerndev/Docs/idt.htm
There’s no division by 0 in the code.