Use pmap_zero_page() to zero pages instead of bzero() because
they haven't been vm_map_wire()'d yet.
This commit is contained in:
parent
41282b992f
commit
085f5d6043
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118076
@ -261,7 +261,7 @@ contigmalloc1(
|
||||
vm_page_insert(m, kernel_object,
|
||||
OFF_TO_IDX(tmp_addr - VM_MIN_KERNEL_ADDRESS));
|
||||
if ((flags & M_ZERO) && !(m->flags & PG_ZERO))
|
||||
bzero((void *)tmp_addr, PAGE_SIZE);
|
||||
pmap_zero_page(m);
|
||||
m->flags = 0;
|
||||
tmp_addr += PAGE_SIZE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user