summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2021-04-21 10:02:06 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2021-04-21 10:02:06 +0000
commit5653c4a47767c88141a50d4c3b13b3be815db71f (patch)
tree017ab5b1dbcaf2c6ab531ac780bdb332d0b56271 /sys/uvm
parent999ad48794cf160aeb5bdab915e068996d39e83b (diff)
Convert remaining uvm_km_zalloc(9) to km_alloc(9).
Tested by bluhm@, jj@, kettenis@ and Scott Bennett. ok kettenis@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index 4a9563c570f..8307b76113e 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.156 2021/03/26 13:40:05 mpi Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.157 2021/04/21 10:02:05 mpi Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -542,8 +542,8 @@ uvm_page_physload(paddr_t start, paddr_t end, paddr_t avail_start,
npages = end - start; /* # of pages */
- pgs = (struct vm_page *)uvm_km_zalloc(kernel_map,
- npages * sizeof(*pgs));
+ pgs = km_alloc(npages * sizeof(*pgs), &kv_any, &kp_zero,
+ &kd_waitok);
if (pgs == NULL) {
printf("uvm_page_physload: can not malloc vm_page "
"structs for segment\n");