summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/lib/console.c
blob: 15d65a31c73226b2e5cf62b62ef968a2b3890cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <build.h>
#include <console/loglevel.h>

#if CONFIG_USE_PRINTK_IN_CAR == 0
#include "console_print.c"
#else  /* CONFIG_USE_PRINTK_IN_CAR == 1 */
#include <console/console.h>
#endif /* CONFIG_USE_PRINTK_IN_CAR */

void console_init(void)
{
	static const char console_test[] = 
		"\r\n\r\ncoreboot-"
		COREBOOT_VERSION
		COREBOOT_EXTRA_VERSION
		" "
		COREBOOT_BUILD
		" starting...\r\n";
	print_info(console_test);
}

void die(const char *str)
{
	print_emerg(str);
	do {
		hlt();
	} while(1);
}