diff options
author | njl <njl@FreeBSD.org> | 2004-04-14 02:10:27 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-04-14 02:10:27 +0000 |
commit | 3c67c2e8d58f25daaed0d50f5d4355084f1faf87 (patch) | |
tree | 9c760be068e0b25d22acbac5eaeba299b68429ff /sys/contrib/dev/acpica/exstore.c | |
parent | 61c302fc074304c548f2de409a49f0c6c9564470 (diff) | |
download | FreeBSD-src-3c67c2e8d58f25daaed0d50f5d4355084f1faf87.zip FreeBSD-src-3c67c2e8d58f25daaed0d50f5d4355084f1faf87.tar.gz |
Import ACPI-CA 20040402 distribution.
Diffstat (limited to 'sys/contrib/dev/acpica/exstore.c')
-rw-r--r-- | sys/contrib/dev/acpica/exstore.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sys/contrib/dev/acpica/exstore.c b/sys/contrib/dev/acpica/exstore.c index a86d17a..48c594c 100644 --- a/sys/contrib/dev/acpica/exstore.c +++ b/sys/contrib/dev/acpica/exstore.c @@ -2,7 +2,7 @@ /****************************************************************************** * * Module Name: exstore - AML Interpreter object store support - * $Revision: 180 $ + * $Revision: 181 $ * *****************************************************************************/ @@ -178,7 +178,8 @@ AcpiExStore ( * Storing an object into a Named node. */ Status = AcpiExStoreObjectToNode (SourceDesc, - (ACPI_NAMESPACE_NODE *) DestDesc, WalkState); + (ACPI_NAMESPACE_NODE *) DestDesc, WalkState, + ACPI_IMPLICIT_CONVERSION); return_ACPI_STATUS (Status); } @@ -232,7 +233,7 @@ AcpiExStore ( /* Storing an object into a Name "container" */ Status = AcpiExStoreObjectToNode (SourceDesc, RefDesc->Reference.Object, - WalkState); + WalkState, ACPI_IMPLICIT_CONVERSION); break; @@ -486,6 +487,7 @@ AcpiExStoreObjectToIndex ( * PARAMETERS: SourceDesc - Value to be stored * Node - Named object to receive the value * WalkState - Current walk state + * ImplicitConversion - Perform implicit conversion (yes/no) * * RETURN: Status * @@ -508,7 +510,8 @@ ACPI_STATUS AcpiExStoreObjectToNode ( ACPI_OPERAND_OBJECT *SourceDesc, ACPI_NAMESPACE_NODE *Node, - ACPI_WALK_STATE *WalkState) + ACPI_WALK_STATE *WalkState, + UINT8 ImplicitConversion) { ACPI_STATUS Status = AE_OK; ACPI_OPERAND_OBJECT *TargetDesc; @@ -539,6 +542,15 @@ AcpiExStoreObjectToNode ( return_ACPI_STATUS (Status); } + /* If no implicit conversion, drop into the default case below */ + + if (!ImplicitConversion) + { + /* Force execution of default (no implicit conversion) */ + + TargetType = ACPI_TYPE_ANY; + } + /* * Do the actual store operation */ |