|
@@ -768,7 +768,8 @@ static int setup_reloc(void)
|
|
|
}
|
|
|
|
|
|
/* ARM calls relocate_code from its crt0.S */
|
|
|
-#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX)
|
|
|
+#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
|
|
|
+ !CONFIG_IS_ENABLED(X86_64)
|
|
|
|
|
|
static int jump_to_copy(void)
|
|
|
{
|
|
@@ -1038,7 +1039,8 @@ static init_fnc_t init_sequence_f[] = {
|
|
|
#if defined(CONFIG_XTENSA)
|
|
|
clear_bss,
|
|
|
#endif
|
|
|
-#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX)
|
|
|
+#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
|
|
|
+ !CONFIG_IS_ENABLED(X86_64)
|
|
|
jump_to_copy,
|
|
|
#endif
|
|
|
NULL,
|
|
@@ -1072,7 +1074,7 @@ void board_init_f(ulong boot_flags)
|
|
|
hang();
|
|
|
|
|
|
#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
|
|
|
- !defined(CONFIG_EFI_APP)
|
|
|
+ !defined(CONFIG_EFI_APP) && !CONFIG_IS_ENABLED(X86_64)
|
|
|
/* NOTREACHED - jump_to_copy() does not return */
|
|
|
hang();
|
|
|
#endif
|
|
@@ -1097,7 +1099,9 @@ void board_init_f(ulong boot_flags)
|
|
|
* all archs will move to this when generic relocation is implemented.
|
|
|
*/
|
|
|
static init_fnc_t init_sequence_f_r[] = {
|
|
|
+#if !CONFIG_IS_ENABLED(X86_64)
|
|
|
init_cache_f_r,
|
|
|
+#endif
|
|
|
|
|
|
NULL,
|
|
|
};
|