diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-01-15 14:36:25 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-01-15 14:36:25 +0100 |
| commit | 693cedc76b061810dfc0dc55e3966d6bf849f397 (patch) | |
| tree | 5aba1768b822b6d4e70207fdd0a1d8eae9ffc262 /arch/x86_64/src/debug | |
| parent | 42f9eaea885fa0744d2138a773702327e26f6b7b (diff) | |
| download | teachos-693cedc76b061810dfc0dc55e3966d6bf849f397.tar.xz teachos-693cedc76b061810dfc0dc55e3966d6bf849f397.zip | |
x86_64/debug: add support for QEMU debug console
Diffstat (limited to 'arch/x86_64/src/debug')
| -rw-r--r-- | arch/x86_64/src/debug/qemu_output.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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 <string_view> + +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 |
