PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
Store

Store. More...

Collaboration diagram for Store:

Detailed Description

Store.

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.
 

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.

Here is the call graph for this function:
Here is the caller graph for this function: