aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-26 16:10:50 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-27 07:02:35 +0100
commit8d06763f47e7b7c93af2a55f6bd2dbc4aa9abfa2 (patch)
treeb4da8395e2ba5dec565500b6b257a2091faeeb17 /arch/x86_64/src
parentd56700342ea0266a6e49f9515eb83279f66b4fcf (diff)
downloadteachos-8d06763f47e7b7c93af2a55f6bd2dbc4aa9abfa2.tar.xz
teachos-8d06763f47e7b7c93af2a55f6bd2dbc4aa9abfa2.zip
kapi/cpu: simplify exception handling
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/cpu/interrupts.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86_64/src/cpu/interrupts.cpp b/arch/x86_64/src/cpu/interrupts.cpp
index 4e52d71..9ee3ce8 100644
--- a/arch/x86_64/src/cpu/interrupts.cpp
+++ b/arch/x86_64/src/cpu/interrupts.cpp
@@ -108,11 +108,10 @@ namespace arch::cpu
auto write = (frame->interrupt.error_code & 0x2) != 0;
auto user = (frame->interrupt.error_code & 0x4) != 0;
- return kapi::cpu::get_exception_handler().handle(
- {type, instruction_pointer, fault_address, present, write, user});
+ return kapi::cpu::dispatch({type, instruction_pointer, fault_address, present, write, user});
}
default:
- return kapi::cpu::get_exception_handler().handle({type, instruction_pointer});
+ return kapi::cpu::dispatch({type, instruction_pointer});
}
}