aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kernel')
-rw-r--r--arch/x86_64/src/kernel/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index ce13723..f4eb033 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -19,10 +19,10 @@ namespace teachos::arch::kernel
memory::heap::bump_allocator heap_allocator{memory::heap::HEAP_START,
memory::heap::HEAP_START + memory::heap::HEAP_SIZE};
auto test = heap_allocator.allocate(1024);
-
auto test2 = new (test) memory::multiboot::memory_information{};
-
- if (test || test2)
+ test2->kernel_end = 5000;
+ auto test3 = test2->kernel_end;
+ if (test || test2 || test3)
{
video::vga::text::write("Kernel remapping successfull", video::vga::text::common_attributes::green_on_black);
}