diff options
Diffstat (limited to 'src/idt.cc')
-rw-r--r-- | src/idt.cc | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -39,14 +39,6 @@ bool IDT::uninstall(uint8_t irq, InterruptHandler* h) { #define ICW4_BUF_MASTER 0x0C /* Buffered mode/master */ #define ICW4_SFNM 0x10 /* Special fully nested (not) */ -extern "C" uint32_t handle_exception(cpu_state_t* r) { - printk("exception ", uhex{r->irq}, " error ", uhex{r->error}, '\n'); - asm volatile("cli"); - while (true) asm volatile("hlt"); - __builtin_unreachable(); - - return reinterpret_cast<uint32_t>(r); -}; extern "C" uint32_t handle_interrupt(cpu_state_t* r) { if (r->irq < irq_base) return reinterpret_cast<uint32_t>(r); |