MCPcopy Create free account
hub / github.com/coreboot/coreboot / bpdt_size

Function bpdt_size

util/cbfstool/ifwitool.c:848–857  ·  view source on GitHub ↗

Parse the bpdt entries to compute the size of the BPDT */

Source from the content-addressed store, hash-verified

846
847/* Parse the bpdt entries to compute the size of the BPDT */
848static size_t bpdt_size(void *data)
849{
850 struct bpdt *b = (struct bpdt *)data;
851 size_t i, size = 0;
852
853 for (i = 0; i < b->h.descriptor_count; i++)
854 size = MAX(size, b->e[i].offset + b->e[i].size);
855
856 return size;
857}
858
859/* Parse input image file to identify different sub-partitions. */
860static int ifwi_parse(void)

Callers 1

ifwi_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected