Move coreboot_ram and coreboot_apc to CBFS. This allows to
reduce the size of the bootblock (done for kontron/986lcd-m) Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4315 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -3,6 +3,31 @@
|
||||
2006/05/02 - stepan: move nrv2b to an extra file.
|
||||
*/
|
||||
|
||||
#if CONFIG_CBFS == 1
|
||||
void cbfs_and_run_core(char*, unsigned ebp);
|
||||
|
||||
static void copy_and_run(void)
|
||||
{
|
||||
# if USE_FALLBACK_IMAGE == 1
|
||||
cbfs_and_run_core("fallback/coreboot_ram", 0);
|
||||
# else
|
||||
cbfs_and_run_core("normal/coreboot_ram", 0);
|
||||
# endif
|
||||
}
|
||||
|
||||
#if CONFIG_AP_CODE_IN_CAR == 1
|
||||
|
||||
static void copy_and_run_ap_code_in_car(unsigned ret_addr)
|
||||
{
|
||||
# if USE_FALLBACK_IMAGE == 1
|
||||
cbfs_and_run_core("fallback/coreboot_apc", ret_addr);
|
||||
# else
|
||||
cbfs_and_run_core("normal/coreboot_apc", ret_addr);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
void copy_and_run_core(u8 *src, u8 *dst, unsigned long ilen, unsigned ebp);
|
||||
|
||||
extern u8 _liseg, _iseg, _eiseg;
|
||||
@ -35,3 +60,4 @@ static void copy_and_run_ap_code_in_car(unsigned ret_addr)
|
||||
copy_and_run_core(src, dst, ilen, ret_addr);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@ -2,6 +2,22 @@
|
||||
(Written by Patrick Georgi <patrick.georgi@coresystems.de> for coresystems GmbH
|
||||
*/
|
||||
|
||||
#if CONFIG_CBFS == 1
|
||||
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 USE_FALLBACK_IMAGE == 1
|
||||
cbfs_and_run_core("fallback/coreboot_ram", cpu_reset);
|
||||
# else
|
||||
cbfs_and_run_core("normal/coreboot_ram", cpu_reset);
|
||||
# endif
|
||||
}
|
||||
|
||||
#else
|
||||
void copy_and_run_core(u8 *src, u8 *dst, unsigned long ilen, unsigned ebp);
|
||||
|
||||
extern u8 _liseg, _iseg, _eiseg;
|
||||
@ -21,3 +37,5 @@ static void copy_and_run(unsigned cpu_reset)
|
||||
|
||||
copy_and_run_core(src, dst, ilen, cpu_reset);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user