mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
libsa: smbios_probe(): Strictly obey specified entry point address
When such an address is known, do not search elsewhere, contrary to what we are doing on non-EFI boot (see SMBIOS_START and SMBIOS_LENGTH). Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49291
This commit is contained in:
parent
9dad0ba286
commit
1ee8714950
1 changed files with 2 additions and 2 deletions
|
|
@ -573,8 +573,8 @@ smbios_probe(const caddr_t addr)
|
|||
int min_off;
|
||||
|
||||
/* Search signatures and validate checksums. */
|
||||
saddr = smbios_sigsearch(addr ? addr : PTOV(SMBIOS_START),
|
||||
SMBIOS_LENGTH);
|
||||
saddr = addr != NULL ? smbios_sigsearch(addr, 1) :
|
||||
smbios_sigsearch(PTOV(SMBIOS_START), SMBIOS_LENGTH);
|
||||
if (saddr == NULL)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue