aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2023-10-12 15:14:04 +0200
committerFelix Morgner <felix.morgner@ost.ch>2023-10-12 15:21:06 +0200
commit4e62a23e3d9d071e0ed7c7a75421c41314c3b90a (patch)
tree1ba13bbfbb24182fe9fa822c978b2d9a478ab5b1
parent0db25b0e76151c43a235ae627cf318b69745c2fb (diff)
downloadteachos-4e62a23e3d9d071e0ed7c7a75421c41314c3b90a.tar.xz
teachos-4e62a23e3d9d071e0ed7c7a75421c41314c3b90a.zip
memory: fix namespace of asm_pointer
-rw-r--r--source/arch/x86_64/src/video/vga/text.cpp2
-rw-r--r--source/include/memory/asm_pointer.hpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/source/arch/x86_64/src/video/vga/text.cpp b/source/arch/x86_64/src/video/vga/text.cpp
index 8259c5a..f1e7412 100644
--- a/source/arch/x86_64/src/video/vga/text.cpp
+++ b/source/arch/x86_64/src/video/vga/text.cpp
@@ -16,7 +16,7 @@ namespace teachos::arch::video::vga::text
auto constexpr default_text_buffer_address = 0xb8000;
extern "C" std::pair<char, attribute> * vga_buffer_pointer;
- auto constinit text_buffer = teachos::boot::asm_pointer{vga_buffer_pointer};
+ auto constinit text_buffer = teachos::memory::asm_pointer{vga_buffer_pointer};
auto write(char code_point, attribute attribute) -> void
{
diff --git a/source/include/memory/asm_pointer.hpp b/source/include/memory/asm_pointer.hpp
index b2e890c..2001561 100644
--- a/source/include/memory/asm_pointer.hpp
+++ b/source/include/memory/asm_pointer.hpp
@@ -1,7 +1,7 @@
-#ifndef TEACHOS_BOOT_ASM_POINTER_HPP
-#define TEACHOS_BOOT_ASM_POINTER_HPP
+#ifndef TEACHOS_MEMORY_ASM_POINTER_HPP
+#define TEACHOS_MEMORY_ASM_POINTER_HPP
-namespace teachos::boot
+namespace teachos::memory
{
template<typename Type>
@@ -40,6 +40,6 @@ namespace teachos::boot
Type const * m_pointer;
};
-} // namespace teachos::boot
+} // namespace teachos::memory
#endif \ No newline at end of file