Hello build bot (Jenkins), Patrick Georgi, Martin Roth, Jonathan Neuschäfer, Stefan Reinauer, Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/41388
to look at the new patch set (#2).
Change subject: acpi: add a function to read a table and verify it ......................................................................
acpi: add a function to read a table and verify it
coreboot can currently read some ACPI tables from cbfs. There is a fair amount of repeated code. Add a function which can take a file name, and a table name, which reads the file in, verifies its size, and its name, returns a pointer to it if it is OK, NULL otherwise.
Show one use of the function: if a madt is found in cbfs, use it instead of generating tables.
Over time, this code might replace other instances of the copied-pasted code use for, e.g., the SLIT.
One such use of this code is on platforms where an ACPI table has been supplied and it it not yet possible to generate one.
Tested-by: Ronald G. Minnich rminnich@google.com
Change-Id: Id5e82eb0a82555b7763107e2a1e2a529a0c1b11f Signed-off-by: Ronald G. Minnich rminnich@google.com --- M src/acpi/acpi.c 1 file changed, 39 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/41388/2