diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-19 14:48:25 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-19 14:48:25 +0000 |
| commit | 779154223c6d220bbfe56b5b14e5fafcccb55781 (patch) | |
| tree | 1341e966d75aeb0fcf6fc377d46472ffa43f50ba /arch/x86_64/src/kernel | |
| parent | 675f38d6733fb19b4ffc7e9fbddb93acdd1d1e31 (diff) | |
| download | teachos-779154223c6d220bbfe56b5b14e5fafcccb55781.tar.xz teachos-779154223c6d220bbfe56b5b14e5fafcccb55781.zip | |
Fix printing of wrong allocated frame
Diffstat (limited to 'arch/x86_64/src/kernel')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 3 |
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 |
