git: 0c5d22eacf23 - stable/14 - loader.kboot: smbios: Add a comment about v3 entry point being favored
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Apr 2025 13:41:14 UTC
The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=0c5d22eacf236bfbce1cfb680507b932f9342b00 commit 0c5d22eacf236bfbce1cfb680507b932f9342b00 Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2025-03-05 10:47:53 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2025-04-08 13:38:29 +0000 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 (cherry picked from commit 0f492f79084f2f88c9d5ade92f900e26cc47a7d0) --- stand/kboot/kboot/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stand/kboot/kboot/main.c b/stand/kboot/kboot/main.c index e57446baa47d..f6dfe481e883 100644 --- a/stand/kboot/kboot/main.c +++ b/stand/kboot/kboot/main.c @@ -259,6 +259,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)