diff options
author | msmith <msmith@FreeBSD.org> | 2001-09-07 01:22:25 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-09-07 01:22:25 +0000 |
commit | 9d39e615a85d5e81e8442ec3bf65c8dff5e393c5 (patch) | |
tree | ba0c24c50a259baa38d43cef66fae1699ec4f152 /sys/contrib/dev/acpica/dsutils.c | |
parent | 56186efdbc469312f31299676d1ef2e2d891ec25 (diff) | |
download | FreeBSD-src-9d39e615a85d5e81e8442ec3bf65c8dff5e393c5.zip FreeBSD-src-9d39e615a85d5e81e8442ec3bf65c8dff5e393c5.tar.gz |
Vendor-branch import of the Intel ACPI CA 20010831 snapshot.
Diffstat (limited to 'sys/contrib/dev/acpica/dsutils.c')
-rw-r--r-- | sys/contrib/dev/acpica/dsutils.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/contrib/dev/acpica/dsutils.c b/sys/contrib/dev/acpica/dsutils.c index 1e1bc83..f9fab91 100644 --- a/sys/contrib/dev/acpica/dsutils.c +++ b/sys/contrib/dev/acpica/dsutils.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: dsutils - Dispatcher utilities - * $Revision: 68 $ + * $Revision: 72 $ * ******************************************************************************/ @@ -147,7 +147,7 @@ AcpiDsIsResultUsed ( ACPI_PARSE_OBJECT *Op, ACPI_WALK_STATE *WalkState) { - ACPI_OPCODE_INFO *ParentInfo; + const ACPI_OPCODE_INFO *ParentInfo; FUNCTION_TRACE_PTR ("DsIsResultUsed", Op); @@ -192,7 +192,6 @@ AcpiDsIsResultUsed ( * Otherwise leave it as is, it will be deleted when it is used * as an operand later. */ - switch (ACPI_GET_OP_CLASS (ParentInfo)) { /* @@ -206,7 +205,7 @@ AcpiDsIsResultUsed ( /* Never delete the return value associated with a return opcode */ - ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, + ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Result used, [RETURN] opcode=%X Op=%X\n", Op->Opcode, Op)); return_VALUE (TRUE); break; @@ -218,7 +217,6 @@ AcpiDsIsResultUsed ( * If we are executing the predicate AND this is the predicate op, * we will use the return value! */ - if ((WalkState->ControlState->Common.State == CONTROL_PREDICATE_EXECUTING) && (WalkState->ControlState->Control.PredicateOp == Op)) { @@ -255,7 +253,7 @@ AcpiDsIsResultUsed ( return_VALUE (TRUE); } - ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, + ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Result not used, Parent opcode=%X Op=%X\n", Op->Opcode, Op)); return_VALUE (FALSE); @@ -362,6 +360,7 @@ AcpiDsCreateOperand ( UINT16 Opcode; UINT32 Flags; OPERATING_MODE InterpreterMode; + const ACPI_OPCODE_INFO *OpInfo; FUNCTION_TRACE_PTR ("DsCreateOperand", Arg); @@ -396,7 +395,8 @@ AcpiDsCreateOperand ( * namespace objects during the execution of control methods. */ ParentOp = Arg->Parent; - if ((AcpiPsIsNodeOp (ParentOp->Opcode)) && + OpInfo = AcpiPsGetOpcodeInfo (ParentOp->Opcode); + if ((OpInfo->Flags & AML_NSNODE) && (ParentOp->Opcode != AML_INT_METHODCALL_OP) && (ParentOp->Opcode != AML_REGION_OP) && (ParentOp->Opcode != AML_INT_NAMEPATH_OP)) @@ -427,7 +427,6 @@ AcpiDsCreateOperand ( * The only case where we pass through (ignore) a NOT_FOUND * error is for the CondRefOf opcode. */ - if (Status == AE_NOT_FOUND) { if (ParentOp->Opcode == AML_COND_REF_OF_OP) @@ -524,7 +523,7 @@ AcpiDsCreateOperand ( * Only error is underflow, and this indicates * a missing or null operand! */ - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Missing or null operand, %s\n", + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Missing or null operand, %s\n", AcpiFormatException (Status))); return_ACPI_STATUS (Status); } @@ -593,6 +592,7 @@ AcpiDsCreateOperands ( FUNCTION_TRACE_PTR ("DsCreateOperands", FirstArg); + /* For all arguments in the list... */ Arg = FirstArg; @@ -622,7 +622,6 @@ Cleanup: * pop everything off of the operand stack and delete those * objects */ - AcpiDsObjStackPopAndDelete (ArgCount, WalkState); ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "While creating Arg %d - %s\n", @@ -665,7 +664,6 @@ AcpiDsResolveOperands ( * TBD: [Investigate] Note from previous parser: * RefOf problem with AcpiExResolveToValue() conversion. */ - for (i = 0; i < WalkState->NumOperands; i++) { Status = AcpiExResolveToValue (&WalkState->Operands[i], WalkState); @@ -700,7 +698,7 @@ AcpiDsMapOpcodeToDataType ( UINT32 *OutFlags) { ACPI_OBJECT_TYPE8 DataType = INTERNAL_TYPE_INVALID; - ACPI_OPCODE_INFO *OpInfo; + const ACPI_OPCODE_INFO *OpInfo; UINT32 Flags = 0; @@ -742,7 +740,7 @@ AcpiDsMapOpcodeToDataType ( break; default: - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Unknown (type LITERAL) AML opcode: %x\n", Opcode)); break; } @@ -854,6 +852,9 @@ AcpiDsMapNamedOpcodeToDataType ( ACPI_OBJECT_TYPE8 DataType; + FUNCTION_ENTRY (); + + /* Decode Opcode */ switch (Opcode) |