Buffers passed as arguments get overwritten

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

Start by tracing AML method argument handling when Arg0 is assigned a buffer, then compare that behavior with the quoted ACPI specification and the supplied ABCD/T12I example. Add a regression test that checks the returned comparison matches Windows behavior; the issue does not name implementation files or a test entry point, so locate those in the crate first.

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

説明

Regarding method arguments, the spec has this line in it, just under table 19.9: "Direct writes to buffer or package ArgX parameters will also simply overwrite ArgX".

Testing on Windows, the following test (called ABCD) returns Ones, whereas on our crate it returns Zero

Name(T12B, Buffer (4) { 0xff, 0xff, 0xff, 0xff })

Method (ABCD) {
    T12I(T12B)
    Return (T12B == Buffer () { 0xff, 0xff, 0xff, 0xff })
}

Method (T12I, 1) {
    Arg0 = Buffer () { 1, 2 }
}

ACPCIA and uACPI appear to match the Windows behaviour.

主要言語
Rust
スター
249
フォーク
102
平均マージ
4日 18時間
マージ済み PR(30日)
6

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

rust-osdev/acpi のほかの issue

rust-osdev/acpi の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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