首页 > 其他 > 详细

uboot代码1:uboot启动过程

时间:2015-12-17 10:33:51      阅读:165      评论:0      收藏:0      [点我收藏+]

start.S

 

stage 1:

  reset:

      set the cpu to svc32 mode

      disable the watchdog

      mask all IRQs(INTMSK, INTSUBMSK)

      

      cpu_init_crit(mmu, bus width status controller)

      set up the stack

      clock_init

      

      relocate u-boot ro RAM:

        copy code to RAM

        clear bbs

        setLoadFlag

 

stage 2:

      start_armboot()

      {

        gd = (gd_t*)(_armboot_start - CFG_MALLOC_LEN - sizeof(gd_t));

        memset gd;

        init_sequence();

        

        for(;;)

        {

          main_loop();

        }

      }

uboot代码1:uboot启动过程

原文:http://www.cnblogs.com/mylinux/p/5052995.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!