RFC: Consolidate peripheral creation and management

オープン
#93 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c

調査の方向性

Start by reviewing the linked pull request (#1) and its peripheral-management changes, focusing on the common init, update, mem_read, and mem_write operations. Compare the demonstration's hardcoded peripheral memory ranges with the proposed integration, and consider libfdt parsing as the stated future direction for completing the work.

索引モデルが issue の本文から書いたものです。

説明

The current peripheral management is a bit cumbersome to extend for new devices or additional harts. Since most common device operations are init, update, mem_read, and mem_write, we could extract these functionalities to ensure a simpler and more consistent approach.

As a result, I've made some modifications to improve the integration. Please check them out here: https://github.com/vacantron/semu/pull/1

In this demonstration, the start and end addresses of the peripheral's memory ranges are hardcoded. This issue could be solved in the future by using libfdt to parse the device tree blob.

主要言語
C
スター
313
フォーク
75
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sysprog21/semu のほかの issue

sysprog21/semu の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。