PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
aml_state_t Struct Reference

AML State. More...

#include <state.h>

Collaboration diagram for aml_state_t:

Data Fields

aml_local_tlocals [AML_MAX_LOCALS]
 Local variables for the method, if any, initialized lazily.
 
aml_arg_targs [AML_MAX_ARGS]
 Argument variables for the method, if any.
 
aml_object_tresult
 The return value, see aml_method_invoke() for details.
 
uint64_t errorDepth
 The length of the error traceback, if 0 then no error has occurred.
 
aml_overlay_t overlay
 Holds any named objects created during parsing.
 

Detailed Description

AML State.

Used to keep track of the virtual machine's state and while invoking methods or parsing DSDT/SSDT tables.

Note that when a Method is evaluated a new aml_state_t is created for the Method's AML bytecode stream.

Definition at line 24 of file state.h.

Field Documentation

◆ locals

aml_local_t* aml_state_t::locals[AML_MAX_LOCALS]

Local variables for the method, if any, initialized lazily.

Definition at line 26 of file state.h.

◆ args

aml_arg_t* aml_state_t::args[AML_MAX_ARGS]

Argument variables for the method, if any.

Definition at line 27 of file state.h.

◆ result

aml_object_t* aml_state_t::result

The return value, see aml_method_invoke() for details.

Definition at line 28 of file state.h.

◆ errorDepth

uint64_t aml_state_t::errorDepth

The length of the error traceback, if 0 then no error has occurred.

Definition at line 29 of file state.h.

◆ overlay

aml_overlay_t aml_state_t::overlay

Holds any named objects created during parsing.

Definition at line 30 of file state.h.


The documentation for this struct was generated from the following file: