1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Another uvm_km_valloc(9) -> km_alloc(9) conversion.

This commit is contained in:
kettenis 2014-10-25 10:19:20 +00:00
parent 686e1faaf4
commit 0c84594fbb
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: astro.c,v 1.15 2014/07/12 18:44:41 tedu Exp $ */
/* $OpenBSD: astro.c,v 1.16 2014/10/25 10:19:20 kettenis Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@ -280,7 +280,7 @@ astro_attach(struct device *parent, struct device *self, void *aux)
1, UVM_PLA_NOWAIT) != 0)
panic("astrottach: no memory");
va = uvm_km_valloc(kernel_map, size);
va = (vaddr_t)km_alloc(size, &kv_any, &kp_none, &kd_nowait);
if (va == 0)
panic("astroattach: no memory");
sc->sc_pdir = (u_int64_t *)va;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: astro.c,v 1.6 2014/07/12 18:44:41 tedu Exp $ */
/* $OpenBSD: astro.c,v 1.7 2014/10/25 10:19:20 kettenis Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@ -277,7 +277,7 @@ astro_attach(struct device *parent, struct device *self, void *aux)
1, UVM_PLA_NOWAIT) != 0)
panic("astrottach: no memory");
va = uvm_km_valloc(kernel_map, size);
va = (vaddr_t)km_alloc(size, &kv_any, &kp_none, &kd_nowait);
if (va == 0)
panic("astroattach: no memory");
sc->sc_pdir = (u_int64_t *)va;