aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-01-16 13:55:51 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-01-16 13:55:51 +0100
commit159bdd2cac3f967c31c2f416fbc542e0277ec860 (patch)
tree328f69d3490a4a7e95bb86fe2ccdc7a8bd877890 /arch
parentf3362a5e486582854c4e85ea54d2357d3b3b2f60 (diff)
downloadteachos-159bdd2cac3f967c31c2f416fbc542e0277ec860.tar.xz
teachos-159bdd2cac3f967c31c2f416fbc542e0277ec860.zip
kapi/system: introduce memory_initialized hook
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/CMakeLists.txt1
-rw-r--r--arch/x86_64/kapi/system.cpp14
2 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86_64/CMakeLists.txt b/arch/x86_64/CMakeLists.txt
index 413b5aa..9ea10e9 100644
--- a/arch/x86_64/CMakeLists.txt
+++ b/arch/x86_64/CMakeLists.txt
@@ -15,6 +15,7 @@ target_sources("x86_64" PRIVATE
"kapi/cio.cpp"
"kapi/cpu.cpp"
"kapi/memory.cpp"
+ "kapi/system.cpp"
# Low-level bootstrap
"src/boot/boot32.S"
diff --git a/arch/x86_64/kapi/system.cpp b/arch/x86_64/kapi/system.cpp
new file mode 100644
index 0000000..5bcae4d
--- /dev/null
+++ b/arch/x86_64/kapi/system.cpp
@@ -0,0 +1,14 @@
+#include "kapi/system.hpp"
+
+#include <kstd/print>
+
+namespace kapi::system
+{
+
+ auto memory_initialized() -> void
+ {
+ kstd::println("[x86_64:SYS] TODO: initialize Interrupt Descriptor Table.");
+ kstd::println("[x86_64:SYS] TODO: reload Global Descriptor Table.");
+ }
+
+} // namespace kapi::system \ No newline at end of file