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

Function convert_addr_space

util/cbfstool/cbfstool.c:572–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572static unsigned int convert_addr_space(const struct buffer *region, unsigned int addr)
573{
574 assert(region);
575
576 assert(create_mmap_windows());
577
578 if (IS_HOST_SPACE_ADDRESS(addr))
579 return convert_host_to_flash(region, addr);
580 else
581 return convert_flash_to_host(region, addr);
582}
583
584/*
585 * This function takes offset value which represents the offset from one end of the region and

Callers 3

cbfs_add_componentFunction · 0.85
cbfstool_convert_fspFunction · 0.85
cbfstool_convert_mkstageFunction · 0.85

Calls 3

create_mmap_windowsFunction · 0.85
convert_host_to_flashFunction · 0.85
convert_flash_to_hostFunction · 0.85

Tested by

no test coverage detected