PatchworkOS
Loading...
Searching...
No Matches
Store

Store. More...

Functions

uint64_t aml_store (aml_state_t *state, aml_object_t *src, aml_object_t *dest)
 Store the value from the source object into the target object.
 

Detailed Description

Store.

Function Documentation

◆ aml_store()

uint64_t aml_store ( aml_state_t state,
aml_object_t src,
aml_object_t dest 
)

Store the value from the source object into the target object.

Follows the rules in table 19.8 section 19.3.5.8 for the "Store" operator or any operator with a "Target" operand.

Will initialize uninitialized objects as specified in section 19.3.5 table 19.5.

If dest is a debug object, we use aml_convert() which will print the value to the console.

See also
Section 19.3.5.8 of the ACPI specification for more details.
Parameters
statePointer to the current AML state.
srcPointer to the source object to store from.
destPointer to the destination object to store to, can be of type AML_UNINITIALIZED, can be NULL in which which case nothing is done.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 10 of file store.c.

References AML_ARG, AML_BUFFER_FIELD, aml_convert(), aml_convert_result(), aml_copy_data_and_type(), aml_copy_object(), AML_DEBUG_OBJECT, AML_FIELD_UNIT, AML_LOCAL, AML_OBJECT_NAMED, aml_object_new(), AML_OBJECT_REFERENCE, aml_object_to_string(), aml_type_to_string(), AML_UNINITIALIZED, aml_object_t::arg, EINVAL, ERR, errno, aml_object_t::local, LOG_ERR, NULL, aml_object_t::objectReference, aml_object_reference_obj_t::target, aml_arg_obj_t::value, and aml_local_obj_t::value.

Referenced by aml_convert_result(), aml_def_add_read(), aml_def_and_read(), aml_def_concat_read(), aml_def_divide_read(), aml_def_find_set_left_bit_read(), aml_def_find_set_right_bit_read(), aml_def_index_read(), aml_def_mod_read(), aml_def_multiply_read(), aml_def_nand_read(), aml_def_nor_read(), aml_def_not_read(), aml_def_or_read(), aml_def_shift_left_read(), aml_def_shift_right_read(), aml_def_store_read(), aml_def_subtract_read(), aml_def_to_bcd_read(), aml_def_to_buffer_read(), aml_def_to_decimal_string_read(), aml_def_to_hex_string_read(), aml_def_to_integer_read(), aml_def_to_string_read(), and aml_def_xor_read().