powerpc: mmu_radix_page_array_startup(): Don't force allocation from domain 0

In this case, the domain from which the memory to back the VM page array
is allocated does not matter, so just let vm_phys_early_alloc() choose
a suitable domain.

Reviewed by:    jhibbits, markj
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D48888
This commit is contained in:
Olivier Certner 2025-02-07 16:24:10 +01:00
parent 16317a174a
commit 0ebd9cf85d
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -6438,7 +6438,7 @@ mmu_radix_page_array_startup(long pages)
start = VM_MIN_KERNEL_ADDRESS;
end = start + pages * sizeof(struct vm_page);
pa = vm_phys_early_alloc(0, end - start);
pa = vm_phys_early_alloc(-1, end - start);
start = mmu_radix_map(&start, pa, end - start, VM_MEMATTR_DEFAULT);
#ifdef notyet