| 151 | } |
| 152 | |
| 153 | static 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 | |
| 163 | static struct mh_cache *get_mh_cache(void) |
| 164 | { |
no test coverage detected