diff options
Diffstat (limited to 'source/components/parser/psutils.c')
| -rw-r--r-- | source/components/parser/psutils.c | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/source/components/parser/psutils.c b/source/components/parser/psutils.c index 55bf2ccff1b0..ec0d20c8e082 100644 --- a/source/components/parser/psutils.c +++ b/source/components/parser/psutils.c @@ -64,12 +64,12 @@  ACPI_PARSE_OBJECT *  AcpiPsCreateScopeOp ( -    void) +    UINT8                   *Aml)  {      ACPI_PARSE_OBJECT       *ScopeOp; -    ScopeOp = AcpiPsAllocOp (AML_SCOPE_OP); +    ScopeOp = AcpiPsAllocOp (AML_SCOPE_OP, Aml);      if (!ScopeOp)      {          return (NULL); @@ -115,6 +115,7 @@ AcpiPsInitOp (   * FUNCTION:    AcpiPsAllocOp   *   * PARAMETERS:  Opcode          - Opcode that will be stored in the new Op + *              Aml             - Address of the opcode   *   * RETURN:      Pointer to the new Op, null on failure   * @@ -126,7 +127,8 @@ AcpiPsInitOp (  ACPI_PARSE_OBJECT*  AcpiPsAllocOp ( -    UINT16                  Opcode) +    UINT16                  Opcode, +    UINT8                   *Aml)  {      ACPI_PARSE_OBJECT       *Op;      const ACPI_OPCODE_INFO  *OpInfo; @@ -173,6 +175,7 @@ AcpiPsAllocOp (      if (Op)      {          AcpiPsInitOp (Op, Opcode); +        Op->Common.Aml = Aml;          Op->Common.Flags = Flags;      }  | 
