diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-15 03:20:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-15 03:20:48 +0000 |
commit | a6e9a1c865707ccd6904e98b221c6be74b97f4d9 (patch) | |
tree | b966e8fdd8a3a3c1b6ffb2158f640f08a32e0f8f /sys | |
parent | 77a67689eb345cb139e0818b92a509ee356e1aa5 (diff) |
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 :)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/dma_alloc.c | 6 |
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) |