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

Function rmodule_copy_payload

src/lib/rmodule.c:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static void rmodule_copy_payload(const struct rmodule *module)
115{
116 printk(BIOS_DEBUG, "Loading module at %p with entry %p. "
117 "filesize: 0x%x memsize: 0x%x\n",
118 module->location, rmodule_entry(module),
119 module->payload_size, rmodule_memory_size(module));
120
121 /* No need to copy the payload if the load location and the
122 * payload location are the same. */
123 if (module->location == module->payload)
124 return;
125
126 memcpy(module->location, module->payload, module->payload_size);
127}
128
129static int rmodule_relocate(const struct rmodule *module)
130{

Callers 1

rmodule_loadFunction · 0.85

Calls 4

rmodule_entryFunction · 0.85
rmodule_memory_sizeFunction · 0.85
memcpyFunction · 0.70
printkFunction · 0.50

Tested by

no test coverage detected