summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2015-08-30 16:47:43 +0000
committerkettenis <kettenis@openbsd.org>2015-08-30 16:47:43 +0000
commit785fe0b9f39e112810941294bddc509692d49cbc (patch)
treea438d848b3937b91d7569cb0fbc2e18b336412dd
parentsimple check of -h option. More deviously, check that option/parameter (diff)
downloadwireguard-openbsd-785fe0b9f39e112810941294bddc509692d49cbc.tar.xz
wireguard-openbsd-785fe0b9f39e112810941294bddc509692d49cbc.zip
The pmap_pool pool will never be used in interrupt context, so pass the
PR_WAITOK flag to pmap_init and pass NULL as the pool allocator.
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index b3a9818651f..69c26a2c854 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.92 2015/07/10 12:11:41 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.93 2015/08/30 16:47:43 kettenis Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
/*
@@ -1381,8 +1381,8 @@ pmap_init(void)
/* Setup a pool for additional pvlist structures */
pool_init(&pv_pool, sizeof(struct pv_entry), 0, 0, 0, "pv_entry", NULL);
pool_setipl(&pv_pool, IPL_VM);
- pool_init(&pmap_pool, sizeof(struct pmap), 0, 0, 0, "pmappl",
- &pool_allocator_nointr);
+ pool_init(&pmap_pool, sizeof(struct pmap), 0, 0, PR_WAITOK,
+ "pmappl", NULL);
}
/* Start of non-cachable physical memory on UltraSPARC-III. */