Skip to content

AML: Handle DefIndexField (real hardware) #184

Open
@alnyan

Description

@alnyan

Hi,
I was trying to integrate the aml/acpi crates into my kernel and found out that some of the real-hardware opcodes are NYI.

I'm currently working on implementing DefIndexField myself, but there's problem that might require significant changes to the aml crate: as IndexFields require writes to their index fields even when reading, this means functions like as_integer/as_string/as_buffer/etc as well as the read_field also perform writes and thus require mutable ref to AmlContext, which breaks lots of other code. A simple workaround would be to add a separate AmlType for IndexFields, but I don't think this is correct as per specification.

So, if you can suggest which way is better, I can finish this feature and make a PR.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions