summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-07-15 03:20:47 +0000
committerderaadt <deraadt@openbsd.org>2010-07-15 03:20:47 +0000
commitfb01b32792b0afdf61f481976c24483b3566eee1 (patch)
tree1e4705818ed786cb47496fe58ad827641f7c2036
parentthe uvm_km_putpage is calling into tangly uvm guts again on not pmap direct. (diff)
downloadwireguard-openbsd-fb01b32792b0afdf61f481976c24483b3566eee1.tar.xz
wireguard-openbsd-fb01b32792b0afdf61f481976c24483b3566eee1.zip
limit the pools from 14 bits down. We cannot use PAGE_SIZE because it
is a variable on sparc. This should be revisited... after the arguments for pagesize vs 4K complete :)
-rw-r--r--sys/kern/dma_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/dma_alloc.c b/sys/kern/dma_alloc.c
index d24cf1a2a33..aae29c151b5 100644
--- a/sys/kern/dma_alloc.c
+++ b/sys/kern/dma_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dma_alloc.c,v 1.2 2010/07/14 00:15:07 deraadt Exp $ */
+/* $OpenBSD: dma_alloc.c,v 1.3 2010/07/15 03:20:47 deraadt Exp $ */
/*
* Copyright (c) 2010 Theo de Raadt <deraadt@openbsd.org>
*
@@ -22,8 +22,8 @@
static __inline int dma_alloc_index(size_t size);
#define DMA_BUCKET_OFFSET 4
-static char dmanames[PAGE_SHIFT - DMA_BUCKET_OFFSET][8];
-struct pool dmapools[PAGE_SHIFT - DMA_BUCKET_OFFSET];
+static char dmanames[14 - DMA_BUCKET_OFFSET][8];
+struct pool dmapools[14 - DMA_BUCKET_OFFSET];
void
dma_alloc_init(void)