From 693cedc76b061810dfc0dc55e3966d6bf849f397 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 15 Jan 2026 14:36:25 +0100 Subject: x86_64/debug: add support for QEMU debug console --- arch/x86_64/src/kapi/cio.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'arch/x86_64/src/kapi') 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 @@ -8,12 +9,12 @@ namespace teachos::cio { auto static constinit vga_device = std::optional{}; + auto static constinit dbg_device = std::optional{}; 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 -- cgit v1.2.3