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

Function rmodule_load_addr

src/lib/rmodule.c:23–28  ·  view source on GitHub ↗

Calculate a loaded program address based on the blob address. */

Source from the content-addressed store, hash-verified

21
22/* Calculate a loaded program address based on the blob address. */
23static inline void *rmodule_load_addr(const struct rmodule *module,
24 uintptr_t blob_addr)
25{
26 char *loc = module->location;
27 return &loc[blob_addr - module->header->module_link_start_address];
28}
29
30/* Initialize a rmodule structure based on raw data. */
31int rmodule_parse(void *ptr, struct rmodule *module)

Callers 4

rmodule_parametersFunction · 0.85
rmodule_entryFunction · 0.85
rmodule_clear_bssFunction · 0.85
rmodule_relocateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected