mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:25:06 +00:00
Kernel: Fix bad search-and-replace renames
Oops, I didn't mean to change every *Range* to *VirtualRange*!
This commit is contained in:
parent
0ca085910e
commit
f770b9d430
4 changed files with 36 additions and 36 deletions
|
@ -47,7 +47,7 @@ RamdiskController::RamdiskController()
|
|||
// Populate ramdisk controllers from Multiboot boot modules, if any.
|
||||
size_t count = 0;
|
||||
for (auto& used_memory_range : MM.used_memory_ranges()) {
|
||||
if (used_memory_range.type == Memory::UsedMemoryVirtualRangeType::BootModule) {
|
||||
if (used_memory_range.type == Memory::UsedMemoryRangeType::BootModule) {
|
||||
size_t length = Memory::page_round_up(used_memory_range.end.get()) - used_memory_range.start.get();
|
||||
auto region = MM.allocate_kernel_region(used_memory_range.start, length, "Ramdisk", Memory::Region::Access::ReadWrite);
|
||||
if (!region)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue