blob: 5594fcc5ac6b297704b39f62a0c447fbda7edb6b (
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 "x86_64/debug/qemu_output.hpp"
#include "x86_64/vga/text.hpp"
#include <optional>
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().cursor(false);
set_output_device(dbg_device.emplace(*vga_device));
}
} // namespace teachos::cio
|