aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-04 18:01:49 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-04 18:01:49 +0000
commit051307f49f4cdfb86c527a475ab21feea4a664d7 (patch)
tree3de19ed68b79d9d5babb418f73f90cd44e568c8a /arch/x86_64/src
parent56ee767e37cdccae333b292f2fd4c7b2123a7108 (diff)
downloadteachos-051307f49f4cdfb86c527a475ab21feea4a664d7.tar.xz
teachos-051307f49f4cdfb86c527a475ab21feea4a664d7.zip
Add more methods to vector to mimic stl interface partially.
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/memory/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/main.cpp b/arch/x86_64/src/memory/main.cpp
index a6f91d9..08308db 100644
--- a/arch/x86_64/src/memory/main.cpp
+++ b/arch/x86_64/src/memory/main.cpp
@@ -7,6 +7,9 @@
#include "arch/memory/heap/heap_allocator.hpp"
#include "arch/memory/paging/active_page_table.hpp"
#include "arch/memory/paging/kernel_mapper.hpp"
+#include "arch/stl/shared_pointer.hpp"
+#include "arch/stl/unique_pointer.hpp"
+#include "arch/stl/vector.hpp"
namespace teachos::arch::memory
{
@@ -49,5 +52,11 @@ namespace teachos::arch::memory
remap_heap(allocator, active_table);
video::vga::text::write("Heap remapping successful", video::vga::text::common_attributes::green_on_black);
video::vga::text::newline();
+
+ auto test2 = stl::make_unique<int>(0);
+ auto test3 = stl::make_shared<int>(0);
+ if (test2 && test3)
+ {
+ }
}
} // namespace teachos::arch::memory