aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/debug/qemu_output.cpp
blob: 773306fed3d3ff54f08205ba7bd20f33c76c89b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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