I've looked through the code thouroughly; I can't seem to find anything else wrong with it. Although I'd recommend a good memzero'ing of the IDT.
Also, I just tested it in my code by commenting out most everything but what he's got: I get the same effect; Without handling it, it will simply triple fault and reset.
Division Error to Reboot
Re:Division Error to Reboot
Yes blip is right it should occur infinitely and not result to double faults.
However I've found that the instruction "iret" on some assemblers will add a 16bit operand prefix when your in 32bit code (some do not). So try using "iretd" insted of "iret".
However I've found that the instruction "iret" on some assemblers will add a 16bit operand prefix when your in 32bit code (some do not). So try using "iretd" insted of "iret".
Re:Division Error to Reboot
Heeyy. Thanks to everybody. I used "cli, hlt" command in isr0, and it isn't rebooting and it is running.
Wait for me Microsoft, I'm Coming.... ;D
Wait for me Microsoft, I'm Coming.... ;D