diff options
author | Olivier Certner <olce@FreeBSD.org> | 2025-03-05 10:47:53 +0000 |
---|---|---|
committer | Olivier Certner <olce@FreeBSD.org> | 2025-03-11 13:54:11 +0000 |
commit | 0f492f79084f2f88c9d5ade92f900e26cc47a7d0 (patch) | |
tree | d2f3b885b95cb6e0d128a318b688b8f33b9f43eb | |
parent | 96f77576e9ea83b3a5d1a02a24da7d54c06a58a8 (diff) |
loader.kboot: smbios: Add a comment about v3 entry point being favored
Note that the behavior here is consistent with BIOS and EFI boot.
Reviewed by: imp, markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49293
-rw-r--r-- | stand/kboot/kboot/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stand/kboot/kboot/main.c b/stand/kboot/kboot/main.c index a9ea2d9354c9..65f7b77f1ace 100644 --- a/stand/kboot/kboot/main.c +++ b/stand/kboot/kboot/main.c @@ -261,6 +261,10 @@ kboot_find_smbios(void) ep = buffer + strlen(buffer); walker = buffer; while (walker <= ep) { + /* + * Linux outputs the v3 table first if present, so we will + * choose it in priority. + */ if (strncmp("SMBIOS3=", walker, 8) == 0) return((vm_offset_t)strtoull(walker + 8, NULL, 0)); if (strncmp("SMBIOS=", walker, 7) == 0) |