aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/cio.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-01-15 14:36:25 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-01-15 14:36:25 +0100
commit693cedc76b061810dfc0dc55e3966d6bf849f397 (patch)
tree5aba1768b822b6d4e70207fdd0a1d8eae9ffc262 /arch/x86_64/src/kapi/cio.cpp
parent42f9eaea885fa0744d2138a773702327e26f6b7b (diff)
downloadteachos-693cedc76b061810dfc0dc55e3966d6bf849f397.tar.xz
teachos-693cedc76b061810dfc0dc55e3966d6bf849f397.zip
x86_64/debug: add support for QEMU debug console
Diffstat (limited to 'arch/x86_64/src/kapi/cio.cpp')
-rw-r--r--arch/x86_64/src/kapi/cio.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86_64/src/kapi/cio.cpp b/arch/x86_64/src/kapi/cio.cpp
index 617146e..5594fcc 100644
--- a/arch/x86_64/src/kapi/cio.cpp
+++ b/arch/x86_64/src/kapi/cio.cpp
@@ -1,5 +1,6 @@
#include "kapi/cio.hpp"
+#include "x86_64/debug/qemu_output.hpp"
#include "x86_64/vga/text.hpp"
#include <optional>
@@ -8,12 +9,12 @@ namespace teachos::cio
{
auto static constinit vga_device = std::optional<vga::x86_64::text::device>{};
+ auto static constinit dbg_device = std::optional<debug::x86_64::qemu_output>{};
auto init() -> void
{
- vga_device.emplace();
- vga_device->cursor(false);
- set_output_device(*vga_device);
+ vga_device.emplace().cursor(false);
+ set_output_device(dbg_device.emplace(*vga_device));
}
} // namespace teachos::cio