Jakub Czapiga has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61714 )
Change subject: libpayload/libc/coreboot: Fix CBFS MCache size ......................................................................
libpayload/libc/coreboot: Fix CBFS MCache size
CBFS MCache size was assigned a value of the coreboot tables entry size instead of the MCache size.
Signed-off-by: Jakub Czapiga jacz@semihalf.com Change-Id: I8a8c3a10c6032121b4c5246d53d2643742968c09 --- M payloads/libpayload/libc/coreboot.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/61714/1
diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c index 79a382b..72d7664 100644 --- a/payloads/libpayload/libc/coreboot.c +++ b/payloads/libpayload/libc/coreboot.c @@ -230,11 +230,11 @@ break; case CBMEM_ID_CBFS_RO_MCACHE: info->cbfs_ro_mcache_offset = cbmem_entry->address; - info->cbfs_ro_mcache_size = cbmem_entry->size; + info->cbfs_ro_mcache_size = cbmem_entry->entry_size; break; case CBMEM_ID_CBFS_RW_MCACHE: info->cbfs_rw_mcache_offset = cbmem_entry->address; - info->cbfs_rw_mcache_size = cbmem_entry->size; + info->cbfs_rw_mcache_size = cbmem_entry->entry_size; break; case CBMEM_ID_CONSOLE: info->cbmem_cons = cbmem_entry->address;