summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-02-08 14:20:55 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-10 12:49:14 +0000
commit5b76ae96117bee8ea424a1817c30bee12c186eac (patch)
treebe7595d8eae4a5c66e6afb5b29f3f35659ee8dab /payloads/libpayload
parent3d121ae1a16751d55006c9b907a283f03c639197 (diff)
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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61714 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/libc/coreboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c
index 79a382b990..72d7664b1a 100644
--- a/payloads/libpayload/libc/coreboot.c
+++ b/payloads/libpayload/libc/coreboot.c
@@ -230,11 +230,11 @@ static void cb_parse_cbmem_entry(void *ptr, struct sysinfo_t *info)
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;