|
PatchworkOS
|
AML State. More...
#include <state.h>
Data Fields | |
| aml_local_obj_t * | locals [AML_MAX_LOCALS] |
| Local variables for the method, if any, initialized lazily. | |
| aml_arg_obj_t * | args [AML_MAX_ARGS] |
| Argument variables for the method, if any. | |
| aml_object_t * | result |
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. | |
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.
| 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().
| 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().
| 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().
| aml_namespace_overlay_t aml_state_t::overlay |
Holds any named objects created during parsing.
Definition at line 30 of file state.h.
Referenced by acpi_sta_get_flags(), aml_def_alias_read(), aml_def_create_bit_field_read(), aml_def_create_field_read(), aml_def_create_field_read_helper(), aml_def_data_region_read(), aml_def_device_read(), aml_def_event_read(), aml_def_method_read(), aml_def_mutex_read(), aml_def_name_read(), aml_def_opregion_read(), aml_def_power_res_read(), aml_def_processor_read(), aml_def_thermal_zone_read(), aml_method_evaluate(), aml_name_field_read(), aml_name_string_read_and_resolve(), aml_obj_reference_read(), aml_package_element_read(), aml_parse(), aml_patch_up_resolve_all(), aml_pci_get_params(), aml_state_deinit(), and aml_state_init().
| 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().