Page MenuHomeFreeBSD

D57710.diff
No OneTemporary

D57710.diff

diff --git a/sys/dev/efidev/efirt.c b/sys/dev/efidev/efirt.c
--- a/sys/dev/efidev/efirt.c
+++ b/sys/dev/efidev/efirt.c
@@ -234,6 +234,8 @@
return (ENXIO);
}
+ rtdm = efi_phys_to_kva((uintptr_t)efi_runtime);
+
#if defined(__aarch64__) || defined(__amd64__)
/*
* Some UEFI implementations have multiple implementations of the
@@ -243,7 +245,6 @@
* with an old loader.efi, check if the RS->GetTime function is within
* the EFI map, and fail to attach if not.
*/
- rtdm = efi_phys_to_kva((uintptr_t)efi_runtime);
if (rtdm == NULL || !efi_is_in_map(map, ndesc, efihdr->descriptor_size,
(vm_offset_t)rtdm->rt_gettime)) {
if (bootverbose)
@@ -255,6 +256,12 @@
}
#endif
+ if (bootverbose) {
+ printf("EFI runtime driver, fw spec %d.%d.%d\n",
+ rtdm->rt_hdr.th_rev >> 16,
+ (rtdm->rt_hdr.th_rev >> 4) & 0xf,
+ rtdm->rt_hdr.th_rev & 0xf);
+ }
/*
* We use SHUTDOWN_PRI_LAST - 1 to trigger after IPMI, but before ACPI.
*/

File Metadata

Mime Type
text/plain
Expires
Fri, Jul 24, 2:55 AM (6 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34150945
Default Alt Text
D57710.diff (973 B)

Event Timeline