riscv-software-src / riscv-software-src/opensbi

How to get my hartid in SMP?

Open
#233 5 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.