summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/dsutils.c
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-11-27 18:07:48 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-11-27 18:07:48 +0000
commit10fb1b40ac2c40a3ce01db48e82a02380186cda2 (patch)
tree7e1248720e7c1c31fedb0a3ab46b79376d860c38 /sys/contrib/dev/acpica/dsutils.c
parent2897e2728d2060055931ead3c876fadfc0eb41e0 (diff)
parent2b17a8d498a3e4598c19121ab1fad3e7ced2c699 (diff)
downloadFreeBSD-src-10fb1b40ac2c40a3ce01db48e82a02380186cda2.zip
FreeBSD-src-10fb1b40ac2c40a3ce01db48e82a02380186cda2.tar.gz
This commit was generated by cvs2svn to compensate for changes in r107325,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'sys/contrib/dev/acpica/dsutils.c')
-rw-r--r--sys/contrib/dev/acpica/dsutils.c44
1 files changed, 42 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/dsutils.c b/sys/contrib/dev/acpica/dsutils.c
index 17cd17a..4c553d3 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: 95 $
+ * $Revision: 97 $
*
******************************************************************************/
@@ -379,6 +379,46 @@ AcpiDsResolveOperands (
return_ACPI_STATUS (Status);
}
+
+
+/*******************************************************************************
+ *
+ * FUNCTION: AcpiDsClearOperands
+ *
+ * PARAMETERS: WalkState - Current walk state with operands on stack
+ *
+ * RETURN: None
+ *
+ * DESCRIPTION: Clear all operands on the current walk state operand stack.
+ *
+ ******************************************************************************/
+
+void
+AcpiDsClearOperands (
+ ACPI_WALK_STATE *WalkState)
+{
+ UINT32 i;
+
+
+ ACPI_FUNCTION_TRACE_PTR ("AcpiDsClearOperands", WalkState);
+
+
+ /*
+ * Remove a reference on each operand on the stack
+ */
+ for (i = 0; i < WalkState->NumOperands; i++)
+ {
+ /*
+ * Remove a reference to all operands, including both
+ * "Arguments" and "Targets".
+ */
+ AcpiUtRemoveReference (WalkState->Operands[i]);
+ WalkState->Operands[i] = NULL;
+ }
+
+ WalkState->NumOperands = 0;
+ return_VOID;
+}
#endif
@@ -549,7 +589,7 @@ AcpiDsCreateOperand (
/* Get the object type of the argument */
OpInfo = AcpiPsGetOpcodeInfo (Opcode);
- if (OpInfo->ObjectType == INTERNAL_TYPE_INVALID)
+ if (OpInfo->ObjectType == ACPI_TYPE_INVALID)
{
return_ACPI_STATUS (AE_NOT_IMPLEMENTED);
}
OpenPOWER on IntegriCloud