blob: b33c6e0272689304bd0466f9f350c4cbb87e2b5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <kapi/cio.hpp>
#include <arch/debug/qemu_output.hpp>
#include <arch/vga/text.hpp>
#include <optional>
namespace kapi::cio
{
auto static constinit vga_device = std::optional<arch::vga::text::device>{};
auto static constinit dbg_device = std::optional<arch::debug::qemu_output>{};
auto init() -> void
{
vga_device.emplace().cursor(false);
set_output_device(dbg_device.emplace(*vga_device));
}
} // namespace kapi::cio
|