asmlinkage void bootblock_main_with_timestamp(uint64_t base_timestamp) { /* Initialize timestamps if we have TIMESTAMP region in memlayout.ld. */ if (IS_ENABLED(CONFIG_COLLECT_TIMESTAMPS) && _timestamp_size > 0) timestamp_init(base_timestamp); cmos_post_init(); bootblock_soc_early_init(); bootblock_mainboard_early_init(); if (IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)) { console_init(); exception_init(); } bootblock_soc_init(); bootblock_mainboard_init(); run_romstage(); }
static void main(unsigned long bist) { if (boot_cpu()) { bootblock_mainboard_init(); #if CONFIG_USE_OPTION_TABLE sanitize_cmos(); #endif #if CONFIG_CMOS_POST cmos_post_init(); #endif } #if CONFIG_SEPARATE_VERSTAGE const char* target1 = "fallback/verstage"; #else const char* target1 = "fallback/romstage"; #endif unsigned long entry; entry = findstage(target1); if (entry) call(entry, bist); halt(); }