|
PatchworkOS
a7b3d61
A non-POSIX operating system.
|
Store. More...
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. | |
| 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.
| state | Pointer to the current AML state. |
| src | Pointer to the source object to store from. |
| dest | Pointer to the destination object to store to, can be of type AML_UNINITIALIZED, can be NULL in which which case nothing is done. |
0. On failure, ERR and errno is set. Definition at line 10 of file store.c.