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/debug/qemu_output.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 arch/x86_64/src/debug/qemu_output.cpp (limited to 'arch/x86_64/src/debug') diff --git a/arch/x86_64/src/debug/qemu_output.cpp b/arch/x86_64/src/debug/qemu_output.cpp new file mode 100644 index 0000000..773306f --- /dev/null +++ b/arch/x86_64/src/debug/qemu_output.cpp @@ -0,0 +1,24 @@ +#include "x86_64/debug/qemu_output.hpp" + +#include "kapi/cio.hpp" + +#include + +namespace teachos::debug::x86_64 +{ + + qemu_output::qemu_output(output_device & lower) + : m_lower{lower} + {} + + auto qemu_output::write(cio::output_stream stream, std::string_view text) -> void + { + for (auto c : text) + { + dbg::write(c); + } + + m_lower.write(stream, text); + } + +} // namespace teachos::debug::x86_64 -- cgit v1.2.3