diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-06-20 13:52:09 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-06-20 14:17:07 +0000 |
| commit | 43fb5b33b00f3b66ec03ab3e0ea002afd16cb7b3 (patch) | |
| tree | 49880e34d992ce2b6f780a3955be55164cca8481 | |
| parent | f7b71f832c990da0bf203095f02405df665529d0 (diff) | |
efirt(9): in verbose mode, announce the attachment and fw spec version
Reviewed by: emaste, imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D57710
| -rw-r--r-- | sys/dev/efidev/efirt.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/efidev/efirt.c b/sys/dev/efidev/efirt.c index c3ac120c6611..2e9a917de1f0 100644 --- a/sys/dev/efidev/efirt.c +++ b/sys/dev/efidev/efirt.c @@ -234,6 +234,8 @@ efi_init(void) 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 @@ efi_init(void) * 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 @@ efi_init(void) } #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. */ |
