diff options
Diffstat (limited to 'src/idt/exception.cc')
-rw-r--r-- | src/idt/exception.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/idt/exception.cc b/src/idt/exception.cc new file mode 100644 index 0000000..efffd95 --- /dev/null +++ b/src/idt/exception.cc @@ -0,0 +1,8 @@ +#include <stdlib.h> +#include "cpu/registers.h" + +extern "C" void handle_exception(const cpu_state_t* r) { + printk("exception ", uhex{r->irq}, " error ", uhex{r->error}, "eip: ", uhex{r->eip}, '\n'); + + abort(); +}; |