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

Function fmap_register_cbmem_cache

src/lib/fmap.c:282–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static 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

Callers 1

fmap_setup_cbmem_cacheFunction · 0.85

Calls 4

cbmem_entry_findFunction · 0.85
rdev_chain_memFunction · 0.85
cbmem_entry_startFunction · 0.85
cbmem_entry_sizeFunction · 0.85

Tested by

no test coverage detected