summaryrefslogtreecommitdiffstats
path: root/sys/mips/sibyte/sb_zbpci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/sibyte/sb_zbpci.c')
-rw-r--r--sys/mips/sibyte/sb_zbpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/sibyte/sb_zbpci.c b/sys/mips/sibyte/sb_zbpci.c
index f4df353..7852a41 100644
--- a/sys/mips/sibyte/sb_zbpci.c
+++ b/sys/mips/sibyte/sb_zbpci.c
@@ -137,7 +137,7 @@ zbpci_attach(device_t dev)
/*
* Allocate KVA for accessing PCI config space.
*/
- va = kmem_alloc_nofault(kernel_map, PAGE_SIZE * mp_ncpus);
+ va = kva_alloc(PAGE_SIZE * mp_ncpus);
if (va == 0) {
device_printf(dev, "Cannot allocate virtual addresses for "
"config space access.\n");
OpenPOWER on IntegriCloud