-/* $OpenBSD: drm_linux.c,v 1.3 2015/04/08 02:28:13 jsg Exp $ */
+/* $OpenBSD: drm_linux.c,v 1.4 2015/04/08 15:01:33 jsg Exp $ */
/*
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
*
paddr_t pa;
int i;
- va = uvm_km_valloc_wait(phys_map, PAGE_SIZE * npages);
+ va = uvm_km_valloc(kernel_map, PAGE_SIZE * npages);
if (va == 0)
return NULL;
for (i = 0; i < npages; i++) {
pmap_remove(pmap_kernel(), va, va + size);
pmap_update(pmap_kernel());
- uvm_km_free(phys_map, va, size);
+ uvm_km_free(kernel_map, va, size);
}