RFC: Consolidate peripheral creation and management

Đang mở
#93 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
313
Fork
75
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sysprog21/semu

Tất cả issue của sysprog21/semu

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.