aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-07-16 06:49:21 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-07-20 20:24:27 +0000
commit842e271b7b8bf8a3bb039db57dce2107600ab883 (patch)
tree6051fcdc8ae5ed6eaaf42bed9b2316902672f623
parentc7663578a278fa7ef76e035f197bc0cb462af198 (diff)
amd64 efirt: register all runtime regions as fictitious
PR: 296348 (cherry picked from commit a2f50c4b32d1c126cf2309dab61d27d6329908f8)
-rw-r--r--sys/amd64/amd64/efirt_machdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/amd64/efirt_machdep.c b/sys/amd64/amd64/efirt_machdep.c
index 203b2b264587..c7a207e81151 100644
--- a/sys/amd64/amd64/efirt_machdep.c
+++ b/sys/amd64/amd64/efirt_machdep.c
@@ -54,6 +54,7 @@
#include <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/vm_pager.h>
+#include <vm/vm_phys.h>
#include <vm/vm_radix.h>
/* The EFI regions we're allowed to map. */
@@ -253,6 +254,8 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz)
"attributes unsupported\n", i);
mode = VM_MEMATTR_UNCACHEABLE;
}
+ (void)vm_phys_fictitious_reg_range(p->md_phys, p->md_phys +
+ p->md_pages * EFI_PAGE_SIZE, mode);
bits = pmap_cache_bits(kernel_pmap, mode, false) | X86_PG_RW |
X86_PG_V;
VM_OBJECT_WLOCK(obj_1t1_pt);