summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-06-07 06:23:20 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-06-07 06:23:20 +0000
commit18fe27a4440d3619d5364d76e216fac1e5368c4f (patch)
treeaefdf17528405283e969f3db6b6fdb1eefddeeaa /sys/arch/powerpc
parent30141f41ce1aad36ca5129ef222f09489b53a0c2 (diff)
consistently set ipls on pmap pools.
this is a step toward making ipls unconditionaly on pools. ok deraadt@ kettenis@
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/powerpc/pmap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c
index 97d7fca94de..4c2c757c27a 100644
--- a/sys/arch/powerpc/powerpc/pmap.c
+++ b/sys/arch/powerpc/powerpc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.163 2015/10/08 10:20:14 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.164 2016/06/07 06:23:19 dlg Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
@@ -2142,13 +2142,17 @@ pmap_real_memory(paddr_t *start, vsize_t *size)
void
pmap_init()
{
- pool_init(&pmap_pmap_pool, sizeof(struct pmap), 0, 0, 0, "pmap", NULL);
+ pool_init(&pmap_pmap_pool, sizeof(struct pmap), 0, 0, 0,
+ "pmap", NULL);
+ pool_setipl(&pmap_pmap_pool, IPL_NONE);
pool_setlowat(&pmap_pmap_pool, 2);
pool_init(&pmap_vp_pool, sizeof(struct pmapvp), 0, 0, 0, "vp",
&pool_allocator_single);
+ pool_setipl(&pmap_vp_pool, IPL_VM);
pool_setlowat(&pmap_vp_pool, 10);
pool_init(&pmap_pted_pool, sizeof(struct pte_desc), 0, 0, 0, "pted",
NULL);
+ pool_setipl(&pmap_pted_pool, IPL_VM);
pool_setlowat(&pmap_pted_pool, 20);
PMAP_HASH_LOCK_INIT();