aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/debug/qemu_output.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-29 09:36:43 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-29 09:36:43 +0200
commitd6ef2153fb32ee7ba04acdf37e7a535a855229db (patch)
treed2cd3275797208b1f78c44baa63739fa8645146f /arch/x86_64/src/debug/qemu_output.cpp
parentd906d70c94c2a40d5fc6fd26056c7bc57d540002 (diff)
parentc3d5a155025b445ab9213f131681afe9410b4e66 (diff)
downloadteachos-d6ef2153fb32ee7ba04acdf37e7a535a855229db.tar.xz
teachos-d6ef2153fb32ee7ba04acdf37e7a535a855229db.zip
Merge branch 'fmorgner/develop-BA-FS26/x86-64-use-p1204-layout' into 'develop-BA-FS26'
chore: migrate 'arch' to p1204 project layout See merge request teachos/kernel!28
Diffstat (limited to 'arch/x86_64/src/debug/qemu_output.cpp')
-rw-r--r--arch/x86_64/src/debug/qemu_output.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/x86_64/src/debug/qemu_output.cpp b/arch/x86_64/src/debug/qemu_output.cpp
deleted file mode 100644
index 71acede..0000000
--- a/arch/x86_64/src/debug/qemu_output.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <arch/debug/qemu_output.hpp>
-
-#include <kapi/cio.hpp>
-
-#include <algorithm>
-#include <string_view>
-
-namespace arch::debug
-{
-
- qemu_output::qemu_output(output_device & lower)
- : m_lower{lower}
- , m_present{port::read() == port::address}
- {}
-
- auto qemu_output::write(kapi::cio::output_stream stream, std::string_view text) -> void
- {
- if (m_present)
- {
- std::ranges::for_each(text, port::write<port::value_type>);
- }
- m_lower.write(stream, text);
- }
-
-} // namespace arch::debug