summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-08-23 15:14:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-08-23 15:14:46 +0000
commit92b5ba5504edae197d14f61e03d04e96102ea9a1 (patch)
treedf3aa80a75568b6a3133e1f194cf23778dcf7346 /sys/arch/alpha
parent1d28d67911525a3c12eb1e3f372f51497167c63c (diff)
Make sure pmap_kernel's mutex field gets correctly initialized rather than
bss initialized.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/pmap.c b/sys/arch/alpha/alpha/pmap.c
index 695ca6f090d..72a6914583a 100644
--- a/sys/arch/alpha/alpha/pmap.c
+++ b/sys/arch/alpha/alpha/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.91 2023/04/13 15:23:21 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.92 2024/08/23 15:14:45 miod Exp $ */
/* $NetBSD: pmap.c,v 1.154 2000/12/07 22:18:55 thorpej Exp $ */
/*-
@@ -863,6 +863,7 @@ pmap_bootstrap(paddr_t ptaddr, u_int maxasn, u_long ncpuids)
pmap_asn_info[i].pma_asngen;
}
TAILQ_INSERT_TAIL(&pmap_all_pmaps, pmap_kernel(), pm_list);
+ mtx_init(&pmap_kernel()->pm_mtx, IPL_VM);
#if defined(MULTIPROCESSOR)
/*