Skip to content

AML: Handle DefExternal (real hardware) #135

@rw-vanc

Description

@rw-vanc

On HP-dq3xxx, there are references to scopes before they are defined. It's possible some of the problem is due to other parser errors and/or parsing the tables out of order. It's not clear if it's possible to guess what order to the tables should be parsed in to avoid this. Here is my proposed approach:

  1. Assume that the AML we are parsing is correct, and that any errors are ours
  2. Automatically create a scope of type LevelType::Scope whenever a new value or scope is created.
  3. If, during explicit creation of a new scope, if the old type was Scope, update it with the new type. If neither type was Scope and they don't match, maybe throw an error.

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