diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-02 12:38:22 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-02 12:38:22 +0000 |
| commit | 5ade8e0d5f190f2e439f81232b38b90c49c0cd1e (patch) | |
| tree | 588066a732447371f815a37db9950cd65452f688 /arch/x86_64/src/memory/allocator | |
| parent | 5ffe7d69545bf098efdd70f105a5df83304b211a (diff) | |
| download | kernel-5ade8e0d5f190f2e439f81232b38b90c49c0cd1e.tar.xz kernel-5ade8e0d5f190f2e439f81232b38b90c49c0cd1e.zip | |
Add comments and improve multiboot information struct usability.
Diffstat (limited to 'arch/x86_64/src/memory/allocator')
| -rw-r--r-- | arch/x86_64/src/memory/allocator/area_frame_allocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp b/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp index 5d56a2a..da4a919 100644 --- a/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp +++ b/arch/x86_64/src/memory/allocator/area_frame_allocator.cpp @@ -11,7 +11,7 @@ namespace teachos::arch::memory::allocator area_frame_allocator::area_frame_allocator(multiboot::memory_information const & mem_info) : next_free_frame(0U) , current_area(std::nullopt) - , memory_areas(mem_info.begin_area, mem_info.end_area) + , memory_areas(mem_info.areas) , kernel_start(physical_frame::containing_address(mem_info.kernel_start)) , kernel_end(physical_frame::containing_address(mem_info.kernel_end)) , multiboot_start(physical_frame::containing_address(mem_info.multiboot_start)) |
