libpayload: Cache physical location of CBMEM entries
In the presence of self-relocating payloads, it's safer to keep physical addresses in `libsysinfo`. This updates all the references to CBMEM entries that are not consumed inside libpayload code. Change-Id: I3be64c8be8b46d00b457eafd7f80a8ed8e604030 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43580 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
12faea3095
commit
bea01e32b2
@ -147,7 +147,7 @@ static int timestamps_module_init(void)
|
||||
if (ret)
|
||||
return -1;
|
||||
|
||||
struct timestamp_table *timestamps = lib_sysinfo.tstamp_table;
|
||||
struct timestamp_table *timestamps = phys_to_virt(lib_sysinfo.tstamp_table);
|
||||
|
||||
if (timestamps == NULL)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user