From 92b5ba5504edae197d14f61e03d04e96102ea9a1 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 23 Aug 2024 15:14:46 +0000 Subject: Make sure pmap_kernel's mutex field gets correctly initialized rather than bss initialized. --- sys/arch/alpha/alpha/pmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/alpha') 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) /* -- cgit v1.2.3