| 280 | } |
| 281 | |
| 282 | static void fmap_register_cbmem_cache(void) |
| 283 | { |
| 284 | const struct cbmem_entry *e; |
| 285 | |
| 286 | /* Find the FMAP cache installed by previous stage */ |
| 287 | e = cbmem_entry_find(CBMEM_ID_FMAP); |
| 288 | /* Don't set fmap_cache so that find_fmap_directory will use regular path */ |
| 289 | if (!e) |
| 290 | return; |
| 291 | |
| 292 | rdev_chain_mem(&fmap_cache, cbmem_entry_start(e), cbmem_entry_size(e)); |
| 293 | } |
| 294 | |
| 295 | /* |
| 296 | * The main reason to copy the FMAP into CBMEM is to make it available to the |
no test coverage detected