From: miod Date: Fri, 23 Aug 2024 15:14:45 +0000 (+0000) Subject: Make sure pmap_kernel's mutex field gets correctly initialized rather than X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d7d91d036887cf3809ede8c974f339235c366c3d;p=openbsd Make sure pmap_kernel's mutex field gets correctly initialized rather than bss initialized. --- 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) /*