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

Function main

src/lib/decompressor.c:39–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37__weak void decompressor_soc_init(void) { /* no-op */ }
38
39void main(void)
40{
41 init_timer();
42
43 if (CONFIG(COLLECT_TIMESTAMPS))
44 arg.base_timestamp = timestamp_get();
45
46 if (CONFIG(CBFS_VERIFICATION))
47 arg.metadata_hash_anchor = metadata_hash_export_anchor();
48
49 decompressor_soc_init();
50
51 if (CONFIG(COLLECT_TIMESTAMPS))
52 arg.timestamps[0].entry_stamp = timestamp_get();
53
54 size_t out_size = ulz4f(compressed_bootblock, _bootblock);
55 prog_segment_loaded((uintptr_t)_bootblock, out_size, SEG_FINAL);
56
57 if (CONFIG(COLLECT_TIMESTAMPS))
58 arg.timestamps[1].entry_stamp = timestamp_get();
59
60 prog_run(&prog_bootblock);
61}

Callers

nothing calls this directly

Calls 7

prog_segment_loadedFunction · 0.85
prog_runFunction · 0.85
init_timerFunction · 0.70
timestamp_getFunction · 0.70
decompressor_soc_initFunction · 0.70
ulz4fFunction · 0.50

Tested by

no test coverage detected