aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/debug
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/debug')
-rw-r--r--arch/x86_64/src/debug/qemu_output.cpp24
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