2 moved from nrv2v.c and some lines from crt0.S
3 2006/05/02 - stepan: move nrv2b to an extra file.
7 void cbfs_and_run_core(char*, unsigned ebp);
9 static void copy_and_run(void)
11 # if USE_FALLBACK_IMAGE == 1
12 cbfs_and_run_core("fallback/coreboot_ram", 0);
14 cbfs_and_run_core("normal/coreboot_ram", 0);
18 #if CONFIG_AP_CODE_IN_CAR == 1
20 static void copy_and_run_ap_code_in_car(unsigned ret_addr)
22 # if USE_FALLBACK_IMAGE == 1
23 cbfs_and_run_core("fallback/coreboot_apc", ret_addr);
25 cbfs_and_run_core("normal/coreboot_apc", ret_addr);
31 void copy_and_run_core(u8 *src, u8 *dst, unsigned long ilen, unsigned ebp);
33 extern u8 _liseg, _iseg, _eiseg;
35 static void copy_and_run(void)
44 copy_and_run_core(src, dst, ilen, 0);
47 #if CONFIG_AP_CODE_IN_CAR == 1
49 extern u8 _liseg_apc, _iseg_apc, _eiseg_apc;
51 static void copy_and_run_ap_code_in_car(unsigned ret_addr)
58 ilen = &_eiseg_apc - dst;
60 copy_and_run_core(src, dst, ilen, ret_addr);