aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/src/kernel/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index 09fc2a2..40dd117 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -28,6 +28,7 @@ namespace teachos::arch::kernel
allocated = allocator.allocate_frame();
} while (allocated.has_value());
video::vga::text::write("Allocated Frames", video::vga::text::common_attributes::green_on_black);
- video::vga::text::write_number(allocated.value().frame_number, video::vga::text::common_attributes::green_on_black);
+ video::vga::text::write_number(last_allocated.value().frame_number,
+ video::vga::text::common_attributes::green_on_black);
}
} // namespace teachos::arch::kernel