riscv-software-src / riscv-software-src/opensbi
How to get my hartid in SMP?
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.5k
- Forks
- 712
- PR merge metrics
- No merged PRs in 30d
Description
In opensbi, OS running in supervisor mode,I can't get hartid from mhartid, I just wanna a function to get hartid like shartid,even though it is read-only, that works! How can I do that?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by tracing how OpenSBI and the supervisor-mode OS handle mhartid, then compare the requested shartid-like function with the stated read-only requirement; done means establishing and documenting a supported way to obtain the hart ID, or clearly narrowing the request if that is not possible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100