kernel/vm: Only prevent access to the physical allocated ranges.

The physical memory ranges will actually be used again
later on during post-modules VM setup. The allocated ranges
are what we really want to prevent access to, anyway.

Fixes #18907.
This commit is contained in:
Augustin Cavalier
2024-05-30 12:14:36 -04:00
parent 2b06e3ea48
commit 2e01121f19
+1 -2
View File
@@ -3374,8 +3374,7 @@ vm_page_init(kernel_args *args)
args->physical_allocated_range[i].size / B_PAGE_SIZE, true);
}
// prevent future accesses to the kernel args ranges
args->num_physical_memory_ranges = 0;
// prevent future allocations from the kernel args ranges
args->num_physical_allocated_ranges = 0;
// The target of actually free pages. This must be at least the system