aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/cio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kapi/cio.cpp')
-rw-r--r--arch/x86_64/src/kapi/cio.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86_64/src/kapi/cio.cpp b/arch/x86_64/src/kapi/cio.cpp
index 617146e..5594fcc 100644
--- a/arch/x86_64/src/kapi/cio.cpp
+++ b/arch/x86_64/src/kapi/cio.cpp
@@ -1,5 +1,6 @@
#include "kapi/cio.hpp"
+#include "x86_64/debug/qemu_output.hpp"
#include "x86_64/vga/text.hpp"
#include <optional>
@@ -8,12 +9,12 @@ namespace teachos::cio
{
auto static constinit vga_device = std::optional<vga::x86_64::text::device>{};
+ auto static constinit dbg_device = std::optional<debug::x86_64::qemu_output>{};
auto init() -> void
{
- vga_device.emplace();
- vga_device->cursor(false);
- set_output_device(*vga_device);
+ vga_device.emplace().cursor(false);
+ set_output_device(dbg_device.emplace(*vga_device));
}
} // namespace teachos::cio