aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/src/video/vga/text.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/src/video/vga/text.cpp b/arch/x86_64/src/video/vga/text.cpp
index 0137ddb..b070a0a 100644
--- a/arch/x86_64/src/video/vga/text.cpp
+++ b/arch/x86_64/src/video/vga/text.cpp
@@ -7,6 +7,8 @@
#include <string_view>
#include <utility>
+extern "C" std::pair<char, teachos::arch::video::vga::text::attribute> * vga_buffer_pointer;
+
namespace teachos::arch::video::vga::text
{
namespace
@@ -14,7 +16,6 @@ namespace teachos::arch::video::vga::text
auto constexpr DEFAULT_TEXT_BUFFER_WIDTH = 80U;
auto constexpr DEFAULT_TEXT_BUFFER_HEIGHT = 25U;
- extern "C" std::pair<char, attribute> * vga_buffer_pointer;
auto constinit text_buffer = teachos::memory::asm_pointer{vga_buffer_pointer};
} // namespace