oxidecomputer / oxidecomputer/hubris
Add way to mark a peripheral as read-only
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 239
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 23
Description
We've got two tasks on the SP sharing access to the "system flash" region to read out unique ID. That ROM also contains calibration information for several peripherals, so this will not be the last time we run into this.
While we generally discourage sharing of peripherals across tasks, there's no technical mechanism that prevents it, and in this case it's desirable. We could make this safer by adding a way to designate a "peripheral" (here, a fixed named ROM rather than registers) as read-only.
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 files or tests are named. Start by tracing how Hubris designates peripherals and enforces access between tasks, then examine the existing sharing behavior for the system flash region. Done means a peripheral can be explicitly designated read-only while preserving safe access for multiple tasks, with coverage for the relevant access rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100