【问题标题】:ARM R0 register value while moving from U-boot to Kernel从 U-boot 移动到内核时的 ARM R0 寄存器值
【发布时间】:2015-09-24 06:23:30
【问题描述】:

在了解内核的设备树(特定于 ARM)时,我开始知道设备树之前和设备树之后的以下区别。

在设备树之前: R1 寄存器包含机器类型 R2 寄存器包含指向 ATAGS 的指针

使用设备树: 无需检查 R1 寄存器 R2 寄存器包含指向 dtb 文件的指针。

我的疑问是在设备树之前 R0 包含的内容以及设备树对 R0 寄存器使用的任何更改。

【问题讨论】:

    标签: linux-kernel arm u-boot device-tree


    【解决方案1】:

    来自arch/arm/kernel/head.S

    /*
     * Kernel startup entry point.
     * ---------------------------
     *
     * This is normally called from the decompressor code.  The requirements
     * are: MMU = off, D-cache = off, I-cache = dont care, r0 = 0,
     * r1 = machine nr, r2 = atags or dtb pointer.
    

    【讨论】:

    • 感谢您的回复。能否请您告诉执行内核加载和更新 R1 和 R2 寄存器的 U-boot 源文件。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-09
    相关资源
    最近更新 更多