libpayload: Cache physical location of cb_table entries
commit12faea3095cbdb4f134442db1451487355368cf8
authorNico Huber <nico.h@gmx.de>
Sat, 18 Jul 2020 14:15:42 +0000 (18 16:15 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 24 Aug 2020 09:13:23 +0000 (24 09:13 +0000)
tree4c9551bcc3882837da037597ffcdfb7ab5556509
parent5e0db58533c1d796129a0a29e03f1ca8e0e81063
libpayload: Cache physical location of cb_table entries

In the presence of self-relocating payloads, it's safer to keep
physical addresses in `libsysinfo`. This updates all the references
to coreboot-table entries that are not consumed inside libpayload
code.

Change-Id: I95cb0af151e0707a1656deacddb8a5253ea38fc3
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43579
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
payloads/libpayload/include/sysinfo.h
payloads/libpayload/libc/coreboot.c