Division Error to Reboot

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Cjmovie

Re:Division Error to Reboot

Post by Cjmovie »

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.
Ryu

Re:Division Error to Reboot

Post by Ryu »

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".
Tolga

Re:Division Error to Reboot

Post by Tolga »

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
Post Reply