coreboot-kgpe-d16/src/commonlib
Patrick Rudolph 6d787c2590 lib/fmap: Cache FMAP in cbmem
For platform independend exposure of FMAP through a kernel module
cache the FMAP in CBMEM. In addition add a pointer in coreboot tables
pointing to the introduced CBMEM area.

To not waste the allocated DRAM, use the cached CBMEM in RAM enabled
stages if possible.

Tested on qemu using
https://github.com/9elements/linux/commits/google_firmware_fmap2

Tested on QEMU and Supermicro X11SSH-TF.

Change-Id: I4e01c573c3edfa34dbba5fe7604d4f6e18b584d5
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35377
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2019-09-23 08:46:13 +00:00
..
include/commonlib lib/fmap: Cache FMAP in cbmem 2019-09-23 08:46:13 +00:00
storage AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
Makefile.inc commonlib: Add Bubble sort algorithm 2019-02-26 11:14:41 +00:00
cbfs.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
fsp_relocate.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
iobuf.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
lz4.c.inc cbfs: Add LZ4 in-place decompression support for pre-RAM stages 2016-02-22 21:38:37 +01:00
lz4_wrapper.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
mem_pool.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
region.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
sort.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00