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

Function check_region

util/ifdtool/ifdtool.c:1384–1393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382}
1383
1384static int check_region(const struct frba *frba, unsigned int region_type)
1385{
1386 struct region region;
1387
1388 if (!frba)
1389 return 0;
1390
1391 region = get_region(frba, region_type);
1392 return !!((region.base < region.limit) && (region.size > 0));
1393}
1394
1395/*
1396 * Platforms from CNL onwards support up to 16 flash regions, not 12. The

Callers 1

lock_descriptorFunction · 0.85

Calls 1

get_regionFunction · 0.85

Tested by

no test coverage detected