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

Function cbfs_unmap

src/lib/cbfs.c:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void cbfs_unmap(void *mapping)
100{
101 /*
102 * This is save to call with mappings that weren't allocated in the cache (e.g. x86
103 * direct mappings) -- mem_pool_free() just does nothing for addresses it doesn't
104 * recognize. This hardcodes the assumption that if platforms implement an rdev_mmap()
105 * that requires a free() for the boot_device, they need to implement it via the
106 * cbfs_cache mem_pool.
107 */
108 mem_pool_free(&cbfs_cache, mapping);
109}
110
111static inline bool fsps_env(void)
112{

Callers 15

read_ddr3_spd_from_cbfsFunction · 0.70
_cbfs_allocFunction · 0.70
payload_loadFunction · 0.70
ux_locales_unmapFunction · 0.70
set_bootsplashFunction · 0.70
selfload_checkFunction · 0.70
check_auxfw_ver_mismatchFunction · 0.50
ec_update_imageFunction · 0.50
intel_txt_run_scleanFunction · 0.50
intel_txt_run_bios_acmFunction · 0.50

Calls 1

mem_pool_freeFunction · 0.50

Tested by

no test coverage detected