diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-01-16 13:36:38 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-01-16 13:36:38 +0100 |
| commit | 7d6f0ed063790042a808f4bf07c50d308b3f2de4 (patch) | |
| tree | 1a2e1c4ed7e2f3d8e6cdcfb012e554d1a4eb1e5a /arch/x86_64/kapi/cio.cpp | |
| parent | 9750405757396d006ab6992fb93baf414b3e2ae8 (diff) | |
| download | teachos-7d6f0ed063790042a808f4bf07c50d308b3f2de4.tar.xz teachos-7d6f0ed063790042a808f4bf07c50d308b3f2de4.zip | |
chore: restructure namespaces
Diffstat (limited to 'arch/x86_64/kapi/cio.cpp')
| -rw-r--r-- | arch/x86_64/kapi/cio.cpp | 20 |
1 files changed, 20 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..015cf5e --- /dev/null +++ b/arch/x86_64/kapi/cio.cpp @@ -0,0 +1,20 @@ +#include "kapi/cio.hpp" + +#include "arch/debug/qemu_output.hpp" +#include "arch/vga/text.hpp" + +#include <optional> + +namespace kapi::cio +{ + + auto static constinit vga_device = std::optional<arch::vga::text::device>{}; + auto static constinit dbg_device = std::optional<arch::debug::qemu_output>{}; + + auto init() -> void + { + vga_device.emplace().cursor(false); + set_output_device(dbg_device.emplace(*vga_device)); + } + +} // namespace kapi::cio |
