void bootblock_soc_early_init(void) { bootblock_systemagent_early_init(); bootblock_pch_early_init(); bootblock_cpu_init(); if (IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)) pch_uart_init(); }
void main(void) { bootblock_cpu_init(); bootblock_mainboard_init(); #if CONFIG_BOOTBLOCK_CONSOLE console_init(); #endif bootblock_mmu_init(); run_romstage(); }
void main(void) { const char *stage_name = "fallback/romstage"; void *entry; bootblock_cpu_init(); bootblock_mainboard_init(); if (CONFIG_BOOTBLOCK_CONSOLE) { console_init(); exception_init(); } entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, stage_name); if (entry) stage_exit(entry); hlt(); }
void main(void) { const char *stage_name = "fallback/romstage"; void *entry; if (boot_cpu()) { bootblock_cpu_init(); bootblock_mainboard_init(); } console_init(); printk(BIOS_INFO, "hello from bootblock\n"); printk(BIOS_INFO, "bootblock main(): loading romstage\n"); entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, stage_name); printk(BIOS_INFO, "bootblock main(): jumping to romstage\n"); if (entry) stage_exit(entry); hlt(); }
void main(void) { bootblock_cpu_init(); /* Mainboard basic init */ bootblock_mainboard_init(); #if CONFIG_BOOTBLOCK_CONSOLE console_init(); #endif bootblock_mmu_init(); if (init_extra_hardware()) { printk(BIOS_ERR, "bootblock_simple: failed to init HW.\n"); } else { run_romstage(); } halt(); }
void main(void) { const char *stage_name = "fallback/romstage"; void *entry; uint32_t sctlr; /* Globally disable MMU, caches, and branch prediction (these should * be disabled by default on reset) */ sctlr = read_sctlr(); sctlr &= ~(SCTLR_M | SCTLR_C | SCTLR_Z | SCTLR_I); write_sctlr(sctlr); armv7_invalidate_caches(); /* * Re-enable caches and branch prediction. MMU will be set up later. * Note: If booting from USB, we need to disable branch prediction * before copying from USB into RAM (FIXME: why?) */ sctlr = read_sctlr(); sctlr |= SCTLR_C | SCTLR_Z | SCTLR_I; write_sctlr(sctlr); if (boot_cpu()) { bootblock_cpu_init(); bootblock_mainboard_init(); } console_init(); printk(BIOS_INFO, "hello from bootblock\n"); printk(BIOS_INFO, "bootblock main(): loading romstage\n"); entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, stage_name); printk(BIOS_INFO, "bootblock main(): jumping to romstage\n"); if (entry) stage_exit(entry); hlt(); }