diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-08-31 20:42:42 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-08-31 20:42:42 +0000 |
commit | d2f0dfc8fd2617a465bfc88a69358dee983575e0 (patch) | |
tree | 4eb170b184e80a8bea72a219ea12a2b8319f992f | |
parent | 39ce8a6f65bdf021c6f83ec204beca65ca1418b7 (diff) |
The pmap_pmap_pool pool will never be used in interrupt context, so pass the
PR_WAITOK flag to pool_init and pass NULL as the pool allocator.
ok mlarkin@
-rw-r--r-- | sys/arch/i386/i386/pmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 4e89d37244b..e3811b73ee3 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.183 2015/08/25 04:57:31 mlarkin Exp $ */ +/* $OpenBSD: pmap.c,v 1.184 2015/08/31 20:42:41 kettenis Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -1026,8 +1026,8 @@ pmap_bootstrap(vaddr_t kva_start) * initialize the pmap pool. */ - pool_init(&pmap_pmap_pool, sizeof(struct pmap), 32, 0, 0, "pmappl", - &pool_allocator_nointr); + pool_init(&pmap_pmap_pool, sizeof(struct pmap), 32, 0, PR_WAITOK, + "pmappl", NULL); pool_init(&pmap_pv_pool, sizeof(struct pv_entry), 0, 0, 0, "pvpl", &pmap_pv_page_allocator); pool_setipl(&pmap_pv_pool, IPL_VM); |