From e6fa60a77bfb8d43feb53bd5f6d7153332f91ad2 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 14 Sep 2024 20:15:51 +0300 Subject: [PATCH] la57: do not set global bit for PML5 entry (cherry picked from commit 678bc2281c3727e920604545240d9115de3d1bd3) --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 9058fa40577..0db1af00874 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2227,7 +2227,7 @@ pmap_bootstrap_la57(void *arg __unused) * entering all existing kernel mappings into level 5 table. */ v_pml5[pmap_pml5e_index(UPT_MAX_ADDRESS)] = KPML4phys | X86_PG_V | - X86_PG_RW | X86_PG_A | X86_PG_M | pg_g; + X86_PG_RW | X86_PG_A | X86_PG_M; /* * Add pml5 entry for 1:1 trampoline mapping after LA57 is turned on.