Skip to content

Commit 844580b

Browse files
committed
isb after the reg_tcr_el1_write in pmap_md_xtab_activate when enabling
non-kernel translation table walk. Fixes GENERIC64_PMAPMI boot on Apple silicon.
1 parent 37d414d commit 844580b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sys/arch/aarch64/aarch64/pmap_machdep.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: pmap_machdep.c,v 1.6 2023/04/20 08:28:02 skrll Exp $ */
1+
/* $NetBSD: pmap_machdep.c,v 1.7 2026/01/22 06:56:40 skrll Exp $ */
22

33
/*-
44
* Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
3737
#define __PMAP_PRIVATE
3838

3939
#include <sys/cdefs.h>
40-
__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.6 2023/04/20 08:28:02 skrll Exp $");
40+
__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.7 2026/01/22 06:56:40 skrll Exp $");
4141

4242
#include <sys/param.h>
4343
#include <sys/types.h>
@@ -549,6 +549,7 @@ pmap_md_xtab_activate(pmap_t pm, struct lwp *l)
549549

550550
if (pm != pmap_kernel()) {
551551
reg_tcr_el1_write(old_tcrel1 & ~TCR_EPD0);
552+
isb();
552553
}
553554

554555
UVMHIST_LOG(maphist, " pm %#jx pm->pm_l0 %016jx pm->pm_l0_pa %016jx asid %ju... done",

0 commit comments

Comments
 (0)