aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-19 14:48:25 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-10-19 14:48:25 +0000
commit779154223c6d220bbfe56b5b14e5fafcccb55781 (patch)
tree1341e966d75aeb0fcf6fc377d46472ffa43f50ba /arch
parent675f38d6733fb19b4ffc7e9fbddb93acdd1d1e31 (diff)
downloadteachos-779154223c6d220bbfe56b5b14e5fafcccb55781.tar.xz
teachos-779154223c6d220bbfe56b5b14e5fafcccb55781.zip
Fix printing of wrong allocated frame
Diffstat (limited to 'arch')
-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