aboutsummaryrefslogtreecommitdiff
path: root/src/interface/linux/linux_acpi.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-03[linux] Validate length of ACPI table read from sysfsMichael Brown1-0/+10
Consumers of acpi_find() will assume that returned structures include a valid table header and that the length in the table header is correct. These assumptions are necessary when dealing with raw ACPI tables, since there exists no independent source of length information. Ensure that these assumptions are also valid for ACPI tables read from sysfs. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2021-03-02[linux] Use generic sysfs mechanism to read ACPI tablesMichael Brown1-78/+21
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2021-03-02[linux] Free cached ACPI tables on shutdownMichael Brown1-0/+22
Free any cached ACPI tables for the sake of neatness (and a clean report from Valgrind). Signed-off-by: Michael Brown <mcb30@ipxe.org>
2021-03-01[linux] Provide ACPI settings via /sys/firmware/acpi/tablesMichael Brown1-0/+173
Signed-off-by: Michael Brown <mcb30@ipxe.org>