summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/init/bootblock_simple.c
blob: 3887b97c58a5cd48d771d890833a8b2179c64adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <bootblock_common.h>

static void main(unsigned long bist)
{
	if (boot_cpu()) {
		bootblock_northbridge_init();
		bootblock_southbridge_init();
	}

#if CONFIG_USE_OPTION_TABLE
	sanitize_cmos();
#endif

	const char* target1 = "fallback/romstage";
	unsigned long entry;
	entry = findstage(target1);
	if (entry) call(entry, bist);
	asm volatile ("1:\n\thlt\n\tjmp 1b\n\t");
}