tools/power/acpi/acpidump: version 20071116
This is unchanged version 20071116, plus a small bit in DEFINE_ALTERNATE_TYPES to enable building with latest kernel headers. Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
981efe9ab9
commit
39a55ff2c3
|
@ -540,8 +540,11 @@ int main(int argc, char **argv)
|
||||||
if (connect) {
|
if (connect) {
|
||||||
lseek(fd, sizeof(struct acpi_rsdp_descriptor), SEEK_SET);
|
lseek(fd, sizeof(struct acpi_rsdp_descriptor), SEEK_SET);
|
||||||
}
|
}
|
||||||
if (!acpi_dump_XSDT(fd, &rsdpx))
|
if (rsdpx.revision > 1 && rsdpx.xsdt_physical_address) {
|
||||||
goto not_found;
|
/* ACPIDUMP uses xsdt table */
|
||||||
|
if (!acpi_dump_XSDT(fd, &rsdpx))
|
||||||
|
goto not_found;
|
||||||
|
}
|
||||||
if (!acpi_dump_RSDT(fd, &rsdpx))
|
if (!acpi_dump_RSDT(fd, &rsdpx))
|
||||||
goto not_found;
|
goto not_found;
|
||||||
if (connect) {
|
if (connect) {
|
||||||
|
|
Loading…
Reference in New Issue