aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi/cio.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-24 20:51:55 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-24 20:51:55 +0000
commitdd04850c27e8bc273506f4a64bb28b7ddf111dc5 (patch)
treea00212f5c903e80e4e729c87ce34ece2c40e4ee6 /arch/x86_64/kapi/cio.cpp
parentfeac668578a35aac280b59d478a57b6937bb68da (diff)
downloadteachos-dd04850c27e8bc273506f4a64bb28b7ddf111dc5.tar.xz
teachos-dd04850c27e8bc273506f4a64bb28b7ddf111dc5.zip
kapi: rework text device interface
Diffstat (limited to 'arch/x86_64/kapi/cio.cpp')
-rw-r--r--arch/x86_64/kapi/cio.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86_64/kapi/cio.cpp b/arch/x86_64/kapi/cio.cpp
new file mode 100644
index 0000000..ac3ae39
--- /dev/null
+++ b/arch/x86_64/kapi/cio.cpp
@@ -0,0 +1,16 @@
+#include "kapi/cio.hpp"
+
+#include "x86_64/vga/text.hpp"
+
+namespace teachos::cio
+{
+
+ auto static constinit vga_device = std::optional<x86_64::vga::text::device>{};
+
+ auto init() -> void
+ {
+ vga_device.emplace();
+ set_output_device(*vga_device);
+ }
+
+} // namespace teachos::cio