PatchworkOS
Loading...
Searching...
No Matches
aml_state_t Struct Reference
Kernel » ACPI » AML » State

AML State. More...

#include <state.h>

Data Fields

aml_local_obj_tlocals [AML_MAX_LOCALS]
 Local variables for the method, if any, initialized lazily.
 
aml_arg_obj_targs [AML_MAX_ARGS]
 Argument variables for the method, if any.
 
aml_object_tresult
 The return value, see aml_method_evaluate() for details.
 
uint64_t errorDepth
 The length of the error traceback, if 0 then no error has occurred.
 
aml_namespace_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

◆ args

aml_arg_obj_t* aml_state_t::args[AML_MAX_ARGS]

Argument variables for the method, if any.

Definition at line 27 of file state.h.

Referenced by aml_arg_obj_read(), aml_state_deinit(), and aml_state_init().

◆ 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.

Referenced by aml_debug_error(), and aml_state_init().

◆ locals

aml_local_obj_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.

Referenced by aml_local_obj_read(), aml_state_deinit(), and aml_state_init().

◆ overlay

◆ result

aml_object_t* aml_state_t::result

The return value, see aml_method_evaluate() for details.

Definition at line 28 of file state.h.

Referenced by aml_state_deinit(), aml_state_init(), aml_state_result_get(), and aml_state_result_set().


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