Skip to content

关于多核启动的hartid获取的讨论 #1

@hzcx998

Description

@hzcx998

一般情况下,都是SBI执行完成后跳转到内核执行,此时a0会保存hartid,也就是OpenSBI->kernel。
但是,在u740中,其它启动流程是SPL->OpenSBI->u-boot->kernel。因此,现在跳转到内核的是u-boot,那么他就可能不会给a0保存hartid。那么在内核中依然使用hartid去获取,这样不就会出错吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions