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

Local Objecs Encoding. More...

Collaboration diagram for Locals:

Detailed Description

Local Objecs Encoding.

See also
Section 20.2.6.2 of the ACPI specification.

Macros

#define AML_MAX_LOCALS   8
 Maximum number of local variables that can be used in a method.
 

Functions

aml_object_taml_local_obj_read (aml_term_list_ctx_t *ctx)
 Reads a LocalObj structure from the AML byte stream.
 

Macro Definition Documentation

◆ AML_MAX_LOCALS

#define AML_MAX_LOCALS   8

Maximum number of local variables that can be used in a method.

Definition at line 21 of file local.h.

Function Documentation

◆ aml_local_obj_read()

aml_object_t * aml_local_obj_read ( aml_term_list_ctx_t ctx)

Reads a LocalObj structure from the AML byte stream.

A LocalObj is defined as LocalObj := Local0Op | Local1Op | Local2Op | Local3Op | Local4Op | Local5Op | Local6Op | Local7Op where

  • Local0Op := 0x60,
  • Local1Op := 0x61,
  • Local2Op := 0x62,
  • Local3Op := 0x63,
  • Local4Op := 0x64,
  • Local5Op := 0x65,
  • Local6Op := 0x66 and
  • Local7Op := 0x67.

Note that if a LocalObj is storing a ObjectRefernce it will be Automatically dereferenced, so in such a situation out will point to the actual object and not an ObjectReference in the LocalObj.

See also
Section 19.3.5.8.2 of the ACPI specification for more details.
Parameters
statePointer to the AML state.
Returns
On success, the LocalObj. On failure, NULL and errno is set.

Definition at line 8 of file local.c.

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