]> mj.ucw.cz Git - pciutils.git/commit
libpci: ecam: Fix scanning of Extended BIOS Data Area for ACPI RSDP
authorPali Rohár <pali@kernel.org>
Tue, 27 Feb 2024 23:32:08 +0000 (00:32 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 5 Apr 2024 11:14:01 +0000 (13:14 +0200)
commit1836a2d4c62a3adbad269e8177528c42daf40f42
tree1f14d8c925e084b1d73fd4c8d5f04bd858ca49c5
parenta34006f8e9c1f80e1446d1007bfff3ffefef4d23
libpci: ecam: Fix scanning of Extended BIOS Data Area for ACPI RSDP

At physical address 0x40E (part of BDA) is stored indirect 16-bit paragraph
offset to the EBDA, and not the EBDA itself. Fix it.

ACPI code in linux kernel checks if the EBDA offset in BDA is above
physical address 0x400. Do the same check here. It is for detection if EBDA
is present as it does not have to be on the old computers or in some
virtualised environments.
lib/ecam.c