diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-10-27 13:58:55 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-10-27 13:58:55 +0000 |
| commit | 7671b1f0e4790b43bb8f8747b63cd44b7a65e10f (patch) | |
| tree | e1815d37415b6b345ed797a08a291b2368575723 /arch/x86_64/src/kapi/cio.cpp | |
| parent | 2977db0fc27ca30fa4f734751e11fce9625caabc (diff) | |
| download | teachos-7671b1f0e4790b43bb8f8747b63cd44b7a65e10f.tar.xz teachos-7671b1f0e4790b43bb8f8747b63cd44b7a65e10f.zip | |
x86_64: move kapi implementation to src
Diffstat (limited to 'arch/x86_64/src/kapi/cio.cpp')
| -rw-r--r-- | arch/x86_64/src/kapi/cio.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86_64/src/kapi/cio.cpp b/arch/x86_64/src/kapi/cio.cpp new file mode 100644 index 0000000..ac3ae39 --- /dev/null +++ b/arch/x86_64/src/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 |
