aboutsummaryrefslogtreecommitdiff
path: root/src/idt.cc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-10 19:39:30 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-10 19:39:30 +0200
commita302ef42887a1a349d9918d5d1471bbea8f59c2b (patch)
treece655d3c31574c6cb77bc437abedf66d32ac9d90 /src/idt.cc
parentMove elf and iso to builddir (diff)
downloadkernel.cpp-a302ef42887a1a349d9918d5d1471bbea8f59c2b.tar.xz
vmm: display segment map info
Diffstat (limited to 'src/idt.cc')
-rw-r--r--src/idt.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/idt.cc b/src/idt.cc
index edf7b37..19865f6 100644
--- a/src/idt.cc
+++ b/src/idt.cc
@@ -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);