aboutsummaryrefslogtreecommitdiff
path: root/src/idt/exception.cc
blob: efffd95d7f3ff0e04a72774ed1769cdcb0de19ce (plain)
1
2
3
4
5
6
7
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();
};