diff options
author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-07-07 04:07:15 +0000 |
---|---|---|
committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-07-07 04:07:15 +0000 |
commit | e05999a8c5a9bfb2f5c91fbc1dc397d46eed5bbb (patch) | |
tree | 05db719e8412ab433bccdc482a1f5890b0229d6d | |
parent | 6a7761b4d27c99b3b548f2d948b88bf1430ee636 (diff) |
-rw-r--r-- | sys/amd64/amd64/efirt_machdep.c | 2 | ||||
-rw-r--r-- | sys/amd64/amd64/machdep.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/amd64/amd64/efirt_machdep.c b/sys/amd64/amd64/efirt_machdep.c index f70e235a0150..fe5d60c978dd 100644 --- a/sys/amd64/amd64/efirt_machdep.c +++ b/sys/amd64/amd64/efirt_machdep.c @@ -63,8 +63,6 @@ 1u << EFI_MD_TYPE_FIRMWARE \ ) -uint32_t efi_map_regs; - static pml5_entry_t *efi_pml5; static pml4_entry_t *efi_pml4; static vm_object_t obj_1t1_pt; diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 1e8f9b22bd19..f46462b39fa3 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -188,6 +188,12 @@ struct init_ops init_ops = { */ vm_paddr_t efi_systbl_phys; +/* + * Bitmap of extra EFI memory region types that should be preserved and mapped + * during runtime services calls. + */ +uint32_t efi_map_regs; + /* Intel ICH registers */ #define ICH_PMBASE 0x400 #define ICH_SMI_EN ICH_PMBASE + 0x30 |