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

Function console_init

src/console/init.c:49–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void console_init(void)
50{
51 init_log_level();
52
53 if (CONFIG(DEBUG_CONSOLE_INIT))
54 console_inited = 1;
55
56 if (CONFIG(EARLY_PCI_BRIDGE) && (ENV_BOOTBLOCK || ENV_SEPARATE_ROMSTAGE))
57 pci_early_bridge_init();
58
59 console_hw_init();
60
61 console_inited = 1;
62
63 if (ENV_BOOTBLOCK && CONFIG(CONSOLE_CBMEM_PRINT_PRE_BOOTBLOCK_CONTENTS))
64 cbmem_dump_console();
65
66 printk(BIOS_NOTICE, "\n\ncoreboot-%s%s %s " ENV_ARCH " " ENV_STRING " starting (log level: %i)...\n",
67 coreboot_version, coreboot_extra_version, coreboot_build, get_log_level());
68}

Callers 15

mainFunction · 0.50
car_stage_entryFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
qemu_power8_mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
romstage_mainFunction · 0.50
mainFunction · 0.50

Calls 6

init_log_levelFunction · 0.85
pci_early_bridge_initFunction · 0.85
cbmem_dump_consoleFunction · 0.85
console_hw_initFunction · 0.70
printkFunction · 0.70
get_log_levelFunction · 0.70

Tested by

no test coverage detected