From fb01b32792b0afdf61f481976c24483b3566eee1 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 15 Jul 2010 03:20:47 +0000 Subject: [PATCH] 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 :) --- sys/kern/dma_alloc.c | 6 +++--- 1 file 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 * @@ -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) -- 2.20.1