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

Function rmodule_clear_bss

src/lib/rmodule.c:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static void rmodule_clear_bss(struct rmodule *module)
95{
96 char *begin;
97 int size;
98
99 begin = rmodule_load_addr(module, module->header->bss_begin);
100 size = module->header->bss_end - module->header->bss_begin;
101 memset(begin, 0, size);
102}
103
104static inline size_t rmodule_number_relocations(const struct rmodule *module)
105{

Callers 1

rmodule_loadFunction · 0.85

Calls 2

rmodule_load_addrFunction · 0.85
memsetFunction · 0.70

Tested by

no test coverage detected