aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/vga/text.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-24 16:15:31 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-24 16:15:31 +0000
commit3b9bbbb4be529f2365b8bc2e43c1c8e9a65b1a07 (patch)
tree4b4eba0cd68e4044e82277e23df2ae2f7d5cc461 /arch/x86_64/src/vga/text.cpp
parentf00a0149b55a0fd57cc731b015c6f425bc720aba (diff)
downloadteachos-3b9bbbb4be529f2365b8bc2e43c1c8e9a65b1a07.tar.xz
teachos-3b9bbbb4be529f2365b8bc2e43c1c8e9a65b1a07.zip
x86_64: clean up vga hierarchy
Diffstat (limited to 'arch/x86_64/src/vga/text.cpp')
-rw-r--r--arch/x86_64/src/vga/text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/vga/text.cpp b/arch/x86_64/src/vga/text.cpp
index dcfdb6b..5c94b84 100644
--- a/arch/x86_64/src/vga/text.cpp
+++ b/arch/x86_64/src/vga/text.cpp
@@ -1,7 +1,7 @@
#include "x86_64/vga/text.hpp"
#include "x86_64/boot/boot.hpp"
-#include "x86_64/vga/io.hpp"
+#include "x86_64/vga/crtc.hpp"
#include <algorithm>
#include <bit>
@@ -29,8 +29,8 @@ namespace teachos::x86_64::vga::text
{
auto cursor_disable_byte = std::byte{!enabled} << 5;
- io::crtc::address_port::write(io::crtc::registers::cursor_start);
- io::crtc::data_port::write(io::crtc::data_port::read() | cursor_disable_byte);
+ crtc::address::write(crtc::registers::cursor_start);
+ crtc::data::write(crtc::data::read() | cursor_disable_byte);
}
auto newline() -> void