aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi/system.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-21 09:06:25 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-21 09:06:25 +0100
commitfcf0cd73b0978c2db3e719542cf81d7d2c0fe24e (patch)
tree134b41bf36ea6b207ebccf6b6924f50c6405dda9 /arch/x86_64/kapi/system.cpp
parent96f1511dbe2e80223732bcbef8068c3d5a330cee (diff)
parentcceaf717405059e8b02132d7c33f9fe3b2645b56 (diff)
downloadteachos-fcf0cd73b0978c2db3e719542cf81d7d2c0fe24e.tar.xz
teachos-fcf0cd73b0978c2db3e719542cf81d7d2c0fe24e.zip
Merge branch 'fmorgner/develop-BA-FS26/gdt_idt' into develop-BA-FS26
This patchset enables the use of interrupts. Specifically, it simplifies debugging by printing the fault address in case of a page fault.
Diffstat (limited to 'arch/x86_64/kapi/system.cpp')
-rw-r--r--arch/x86_64/kapi/system.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/kapi/system.cpp b/arch/x86_64/kapi/system.cpp
index ffb6a46..301169f 100644
--- a/arch/x86_64/kapi/system.cpp
+++ b/arch/x86_64/kapi/system.cpp
@@ -1,6 +1,7 @@
#include "kapi/system.hpp"
#include "arch/cpu/initialization.hpp"
+#include "arch/cpu/interrupts.hpp"
namespace kapi::system
{
@@ -8,6 +9,8 @@ namespace kapi::system
auto memory_initialized() -> void
{
arch::cpu::initialize_descriptors();
+ arch::cpu::initialize_legacy_interrupts();
+ arch::cpu::enable_interrupts();
}
} // namespace kapi::system \ No newline at end of file