mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
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)
This commit is contained in:
parent
807d51be80
commit
0c5d22eacf
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue