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

Function imd_lockdown

src/lib/imd.c:463–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463int imd_lockdown(struct imd *imd)
464{
465 struct imd_root *r;
466
467 r = imdr_root(&imd->lg);
468 if (r == NULL)
469 return -1;
470
471 r->flags |= IMD_FLAG_LOCKED;
472
473 r = imdr_root(&imd->sm);
474 if (r != NULL)
475 r->flags |= IMD_FLAG_LOCKED;
476
477 return 0;
478}
479
480int imd_region_used(struct imd *imd, void **base, size_t *size)
481{

Callers 2

cbmem_initialize_id_sizeFunction · 0.85
test_imd_lockdownFunction · 0.85

Calls 1

imdr_rootFunction · 0.85

Tested by 1

test_imd_lockdownFunction · 0.68