aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
-rw-r--r--arch/x86_64/src/kernel/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index a4f138c..7992b34 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -41,6 +41,15 @@ namespace teachos::arch::kernel
}
heap_allocator.deallocate(test, 1024);
+
+ heap_allocator.allocate(1024); // test 9
+ auto test10 = heap_allocator.allocate(1024);
+ auto test11 = heap_allocator.allocate(1024);
+ auto test12 = heap_allocator.allocate(1024);
+ heap_allocator.allocate(1024); // test 13
+ heap_allocator.deallocate(test11, 1024);
+ heap_allocator.deallocate(test10, 1024);
+ heap_allocator.deallocate(test12, 1024);
}
auto main() -> void
@@ -52,6 +61,6 @@ namespace teachos::arch::kernel
memory::initialize_memory_management();
// stack_overflow_test(0);
- // heap_test();
+ heap_test();
}
} // namespace teachos::arch::kernel