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

Function parse_sbpdt

util/cbfstool/ifwitool.c:732–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732static void parse_sbpdt(void *data, size_t size)
733{
734 struct bpdt_entry *s;
735 s = find_entry_by_type(S_BPDT_TYPE);
736 if (!s)
737 return;
738
739 assert(size > s->offset);
740
741 alloc_bpdt_buffer(data, size, s->offset,
742 &ifwi_image.subpart_buf[S_BPDT_TYPE],
743 "S-BPDT");
744}
745
746static uint8_t calc_checksum(struct subpart_dir *s)
747{

Callers 1

ifwi_parseFunction · 0.85

Calls 2

find_entry_by_typeFunction · 0.85
alloc_bpdt_bufferFunction · 0.85

Tested by

no test coverage detected