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

Standard way of getting memory map info

Open
#144 1 comment 1 reaction 1 assignee View on GitHub

@atishp04 is already working on this.

Since Mar 8, 2020.

Dominant language
C
Stars
1.5k
Forks
712
PR merge metrics
No merged PRs in 30d

Description

Follow up from my comment on #70 where I argue that adding a standard way of querying info about the memory map would be a good idea.

A quick recap:

  • Add an extension to query OpenSBI about the memory map at runtime. It's very flexible, but maybe overkill for the most common situation where it remains fixed.
  • Pass info at boot time in an structure generated by the firmware: the simplest to implement solution (for both OpenSBI and the payload), but don't allow modifications to the memory map (although after boot, the OS should be able to manage it by itself)
  • Do nothing, and rely on info currently available (on almost all platforms the Device Tree, but as a standard I don't know if we can be sure this is going to be true for all platforms which OpenSBI will support). This leads to parsing at certain level platform-specific structures, but maybe it should be that way.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.