blob: 015cf5e718eeb6735ff5849a63fb45e3497bc920 (
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
|