Impotent IDT
Posted: Sat Jan 08, 2022 7:19 pm
Hi! I am working on a hobby OS I've named WiccanOS. I've currently been able to enter protected mode and start writing to the VGA buffer. The next step seemed to be to set up the IDT, so I started that. The IDT appears to have been set up properly because I immediately test the table by dividing by zero. The OS does not triple fault, so I am led to believe the exception is being handled somehow, but not how I intended. I have written a generic handler to catch double faults, but I intend to implement the other exceptions as I get to them after I get the double fault working. This generic handler currently writes to the VGA buffer a message saying that an unhandled exception as occurred then uses inline assembly for "cli" and "hlt." Everything seems to work fine except this message is never written to the buffer. I am not entirely certain what is wrong. I would guess that it is due to an incorrectly set up IDT, but I would expect a triple fault in that case. Any help would be appreciated.
My OS is in my signature, and here is a link to it.
My OS is in my signature, and here is a link to it.