diff options
| author | 2011-04-18 19:23:46 +0000 | |
|---|---|---|
| committer | 2011-04-18 19:23:46 +0000 | |
| commit | 803ae8aa7cc217809c873326a414a7034410d2f5 (patch) | |
| tree | 4c0ecdcea361f402ea39f8a53e5c0cdfb34d6775 /sys/kern/dma_alloc.c | |
| parent | yeouch (diff) | |
| download | wireguard-openbsd-803ae8aa7cc217809c873326a414a7034410d2f5.tar.xz wireguard-openbsd-803ae8aa7cc217809c873326a414a7034410d2f5.zip | |
Put back the change of pool and malloc into the new km_alloc(9) api.
The problems during the hackathon were not caused by this (most likely).
prodded by deraadt@ and beck@
Diffstat (limited to 'sys/kern/dma_alloc.c')
| -rw-r--r-- | sys/kern/dma_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/dma_alloc.c b/sys/kern/dma_alloc.c index 55989077def..a38a48f7d2a 100644 --- a/sys/kern/dma_alloc.c +++ b/sys/kern/dma_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dma_alloc.c,v 1.7 2011/04/06 15:52:13 art Exp $ */ +/* $OpenBSD: dma_alloc.c,v 1.8 2011/04/18 19:23:46 art Exp $ */ /* * Copyright (c) 2010 Theo de Raadt <deraadt@openbsd.org> * @@ -37,7 +37,7 @@ dma_alloc_init(void) 1 << (i + DMA_BUCKET_OFFSET)); pool_init(&dmapools[i], 1 << (i + DMA_BUCKET_OFFSET), 0, 0, 0, dmanames[i], NULL); - pool_set_constraints(&dmapools[i], &dma_constraint, 1); + pool_set_constraints(&dmapools[i], &kp_dma); pool_setipl(&dmapools[i], IPL_VM); /* XXX need pool_setlowat(&dmapools[i], dmalowat); */ } |
