Correct an error of omission in r195649 ("Add support to the virtual memory

system for configuring machine-dependent memory attributes: ...").  In
r195649, the "vm_cache_mode_t/vm_memattr_t" parameter was removed from
vm_phys_alloc_contig().

Approved by:	re (kensmith)
This commit is contained in:
Alan Cox 2009-07-13 18:11:59 +00:00
parent 45a30a41d2
commit bc5c48f12f

View File

@ -1297,8 +1297,7 @@ pmap_alloc_zeroed_contig_pages(int npages, uint64_t alignment)
while (m == NULL) { while (m == NULL) {
for (i = 0; phys_avail[i + 1] != 0; i += 2) { for (i = 0; phys_avail[i + 1] != 0; i += 2) {
m = vm_phys_alloc_contig(npages, phys_avail[i], m = vm_phys_alloc_contig(npages, phys_avail[i],
phys_avail[i + 1], alignment, (1UL<<34), phys_avail[i + 1], alignment, (1UL<<34));
VM_CACHE_DEFAULT);
if (m) if (m)
goto found; goto found;
} }