| 37 | __weak void decompressor_soc_init(void) { /* no-op */ } |
| 38 | |
| 39 | void 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 | } |
nothing calls this directly
no test coverage detected