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

Function derive_mhc_kind

util/cbfstool/cbfstool.c:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static enum mhc_kind derive_mhc_kind(const char *region_name)
154{
155 /* Only these two regions are specific to Top Swap. */
156 if (strcmp(region_name, SECTION_NAME_SECONDARY_CBFS) == 0 ||
157 strcmp(region_name, SECTION_NAME_BOOTBLOCK_B) == 0)
158 return MHC_SECONDARY;
159
160 return MHC_PRIMARY;
161}
162
163static struct mh_cache *get_mh_cache(void)
164{

Callers 1

get_mh_cacheFunction · 0.85

Calls 1

strcmpFunction · 0.50

Tested by

no test coverage detected