RT-Thread / RT-Thread/rt-thread
[Feature] risc-v: 统一 PLIC 支持 | Unify the PLIC
Open
Nobody has claimed this yet.
Arch: RISC-V
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Describe problem solved by the proposed feature
以下三个文件分别实现了 PLIC 驱动,可以统一到一个实现中。
- https://github.com/RT-Thread/rt-thread/blob/master/libcpu/risc-v/t-head/c906/plic.c
- https://github.com/RT-Thread/rt-thread/blob/master/libcpu/risc-v/t-head/c908/plic.c
- https://github.com/RT-Thread/rt-thread/blob/master/libcpu/risc-v/virt64/plic.c
Describe your preferred solution
No response
Describe possible alternatives
No response
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
Compare libcpu/risc-v/t-head/c906/plic.c, libcpu/risc-v/t-head/c908/plic.c, and libcpu/risc-v/virt64/plic.c to identify their shared PLIC driver behavior and platform-specific differences. The work is done when the three separate implementations are unified into one implementation without losing support for the listed RISC-V targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100