diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-26 16:35:32 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-27 07:02:35 +0100 |
| commit | 00a77644192642e06462c11479a5c0e9bd859e9a (patch) | |
| tree | d86cee8a0d7f4d2894ced16614fcd4554e10c327 /arch/x86_64/src | |
| parent | 2521d58e7a5c16595e401e1af7becb572ad35f53 (diff) | |
| download | teachos-00a77644192642e06462c11479a5c0e9bd859e9a.tar.xz teachos-00a77644192642e06462c11479a5c0e9bd859e9a.zip | |
kapi: extract interrupts API
Diffstat (limited to 'arch/x86_64/src')
| -rw-r--r-- | arch/x86_64/src/cpu/interrupts.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/src/cpu/interrupts.cpp b/arch/x86_64/src/cpu/interrupts.cpp index 9ee3ce8..2f23f07 100644 --- a/arch/x86_64/src/cpu/interrupts.cpp +++ b/arch/x86_64/src/cpu/interrupts.cpp @@ -1,6 +1,7 @@ #include "arch/cpu/interrupts.hpp" #include "kapi/cpu.hpp" +#include "kapi/interrupts.hpp" #include "kapi/memory.hpp" #include "arch/cpu/legacy_pic.hpp" @@ -146,7 +147,7 @@ namespace arch::cpu } } else if (number >= number_of_exception_vectors && - kapi::cpu::dispatch_interrupt(number) == kapi::cpu::status::unhandled) + kapi::interrupts::dispatch(number) == kapi::interrupts::status::unhandled) { kstd::println(kstd::print_sink::stderr, "[x86_64:CPU] Unhandled interrupt {:#04x}", number); } |
