Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    [D1哪吒]之SPL的启动流程

    MR Series
    1
    1
    1559
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      March LV 5 last edited by

      SPL作为第二阶段程序加载器,其作用不言而喻,在./lichee/brandy2.0目录下,提供了SPL源码,找到编译过后的boot0.lds,其入口点为_start,全局搜索_start,spl/arch/riscv/cpu/riscv64/boot0_entry.S中的_start最像,boot0_entry.S代码如下e55d1485-448a-47ce-af30-95fb004809fa-image.png ,如上图所示,红框中,既然用了csrs指令,那么mxstatus和mcor肯定是RISCV的控制状态寄存器,[附csrs指令描述]:40b922b1-08e4-486c-acbf-12bb38efc2f9-image.png ,我查看了RISCV特权架构文档,并没有该寄存器。再往下面,有如下指令:jal main和j .
      我的问题:
      (1)SPL程序的入口点是spl/arch/riscv/cpu/riscv64/boot0_entry.S中的_start嘛?
      (2)mxstatus和mcor寄存器的相关信息?
      (3)指令jal main调用的main是在哪里呢?是../spl/nboot/main/boot0_main.c中的main嘛?
      (4)指令j .的含义是什么啊?

      1 Reply Last reply Reply Quote Share 0
      • Referenced by  Kirin Kirin 
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策