From aaebc86c2c57d8a6df0f48256d208a3da0baa690 Mon Sep 17 00:00:00 2001 From: kurt Date: Wed, 27 Mar 2024 15:40:50 +0000 Subject: [PATCH] Initialize pmap_tramp.pm_mtx before use. okay mpi@ miod@ --- sys/arch/arm64/arm64/pmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c index 2b7f2bd946c..8f0fa30ff9f 100644 --- a/sys/arch/arm64/arm64/pmap.c +++ b/sys/arch/arm64/arm64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.101 2024/01/26 19:23:03 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.102 2024/03/27 15:40:50 kurt Exp $ */ /* * Copyright (c) 2008-2009,2014-2016 Dale Rahn * @@ -1223,6 +1223,7 @@ pmap_bootstrap(long kvo, paddr_t lpt1, long kernelstart, long kernelend, pmap_kernel()->pm_guarded = ATTR_GP; pmap_kernel()->pm_asid = 0; + mtx_init(&pmap_tramp.pm_mtx, IPL_VM); pmap_tramp.pm_vp.l1 = (struct pmapvp1 *)va + 1; pmap_tramp.pm_privileged = 1; pmap_tramp.pm_guarded = ATTR_GP; -- 2.20.1