aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-02 13:59:27 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-02 14:02:13 +0200
commitb84c4c9d8c90f3d3fd5a60de282278912fad2f04 (patch)
treeac283ed18407a8e97bcd14b2cfca3da74f60547b /arch/x86_64/kapi
parentd0c532af74d8d486d734904fd330d5dae7f49754 (diff)
downloadteachos-b84c4c9d8c90f3d3fd5a60de282278912fad2f04.tar.xz
teachos-b84c4c9d8c90f3d3fd5a60de282278912fad2f04.zip
x86_64/devices: implement ISA bus stub
Diffstat (limited to 'arch/x86_64/kapi')
-rw-r--r--arch/x86_64/kapi/devices.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86_64/kapi/devices.cpp b/arch/x86_64/kapi/devices.cpp
new file mode 100644
index 0000000..25185d6
--- /dev/null
+++ b/arch/x86_64/kapi/devices.cpp
@@ -0,0 +1,22 @@
+#include "kapi/devices.hpp"
+
+#include "arch/bus/isa.hpp"
+
+#include <kstd/memory>
+#include <kstd/print>
+
+#include <utility>
+
+namespace kapi::devices
+{
+
+ auto init_platform_devices() -> void
+ {
+ kstd::println("[x86_64:devices] Initializing ISA bus...");
+ auto isa_bus = kstd::make_unique<arch::bus::isa>();
+
+ auto & root_bus = get_root_bus();
+ root_bus.add_child(std::move(isa_bus));
+ }
+
+} // namespace kapi::devices \ No newline at end of file