uboot下init_sequence_f函数之jump_to_copy

jump_to_copy:
#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
  !CONFIG_IS_ENABLED(X86_64)
 jump_to_copy,
#endif
 
 
/* ARM calls relocate_code from its crt0.S */
#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX) && \
  !CONFIG_IS_ENABLED(X86_64)
static int jump_to_copy(void)
{
 if (gd->flags & GD_FLG_SKIP_RELOC)
  return 0;
 /*
  * x86 is special, but in a nice way. It uses a trampoline which
  * enables the dcache if possible.
  *
  * For now, other archs use relocate_code(), which is implemented
  * similarly for all archs. When we do generic relocation, hopefully
  * we can make all archs enable the dcache prior to relocation.
  */
#if defined(CONFIG_X86) || defined(CONFIG_ARC)
 /*
  * SDRAM and console are now initialised. The final stack can now
  * be setup in SDRAM. Code execution will continue in Flash, but
  * with the stack in SDRAM and Global Data in temporary memory
  * (CPU cache)
  */
 arch_setup_gd(gd->new_gd);
 board_init_f_r_trampoline(gd->start_addr_sp);
#else
 relocate_code(gd->start_addr_sp, gd->new_gd, gd->relocaddr);
#endif
 return 0;
}
#endif
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值