libpayload: Cache physical location of strings
commit4a7325228f7afbb47a35300a76bde5e5da0a833a
authorNico Huber <nico.h@gmx.de>
Sat, 18 Jul 2020 14:29:18 +0000 (18 16:29 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 24 Aug 2020 09:13:35 +0000 (24 09:13 +0000)
treed0632e7598f5f85c822c42439c1c64a9f35c6197
parentbea01e32b277682d273fa4a054f34cf725cb15b7
libpayload: Cache physical location of strings

In the presence of self-relocating payloads, it's safer to keep
physical addresses in `libsysinfo`. This updates the remaining
pointers that are not consumed by libpayload code, all of them
strings.

Also update the comment that `libsysinfo` only containts physical
addresses.

Change-Id: I9d095c826b00d621201c34b329fb9b5beb1ec794
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43581
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