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

Function selfload_check

src/lib/selfboot.c:272–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272bool selfload_check(struct prog *payload, enum bootmem_type dest_type)
273{
274 if (prog_locate_hook(payload))
275 return false;
276
277 payload->cbfs_type = CBFS_TYPE_SELF;
278 void *mapping = cbfs_type_map(prog_name(payload), NULL, &payload->cbfs_type);
279 if (!mapping)
280 return false;
281
282 bool ret = selfload_mapped(payload, mapping, dest_type);
283
284 cbfs_unmap(mapping);
285 return ret;
286}
287
288bool selfload(struct prog *payload)
289{

Callers 3

run_bl31Function · 0.85
arch_prog_runFunction · 0.85
selfloadFunction · 0.85

Calls 5

cbfs_type_mapFunction · 0.85
prog_nameFunction · 0.85
selfload_mappedFunction · 0.85
prog_locate_hookFunction · 0.70
cbfs_unmapFunction · 0.70

Tested by

no test coverage detected