RT-Thread / RT-Thread/rt-thread

[Bug] [RISC-V] riscv64 SMP hartid的保存无效

Open
#11,226 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

RT-Thread Version

master

Hardware Type/Architectures

RISC-V ur-dp1000

Develop Toolchain

Other

Describe the bug

risc-v common64中,SMP多核运行时,目前标准版使用satp保存hartid,risc-v Privileged Architecture spec中对satp寄存器的说明:

Image 在satp寄存器的mode=0时,其他字段必须写0。因此实际板卡上运行时,通过satp保存hartid与预期不符(qemu中该寄存器可以写入)。
Other additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the RISC-V common64 SMP hartid handling that writes the hartid to satp, then compare that path with the Privileged Architecture requirement described in the issue. Reproduce or inspect the behavior on the RISC-V ur-dp1000 hardware rather than relying only on QEMU. Done means SMP hartid handling works on the reported board without relying on invalid satp fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.