aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/x86/car/copy_and_run.c
blob: 7257c4f6bcbd5ce52a46f705c989064eab84abef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright (C) 2009 coresystems GmbH
   (Written by Patrick Georgi <patrick.georgi@coresystems.de> for coresystems GmbH
*/

void cbfs_and_run_core(char*, unsigned ebp);

static void copy_and_run(unsigned cpu_reset)
{
	if (cpu_reset == 1) cpu_reset = -1;
	else cpu_reset = 0;

#if CONFIG_USE_FALLBACK_IMAGE == 1
	cbfs_and_run_core("fallback/coreboot_ram", cpu_reset);
#else
	cbfs_and_run_core("normal/coreboot_ram", cpu_reset);
#endif
}