summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/exstore.c
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-10-04 20:07:58 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-10-04 20:07:58 +0000
commit3b2a4f1cbea5e9139e6d4710e31efedef37247ac (patch)
tree95e2e8a70dc361cf34d6a4c080313e68541ea4aa /sys/contrib/dev/acpica/exstore.c
parent1824f192010fc0c0826e9889892e534075b58793 (diff)
downloadFreeBSD-src-3b2a4f1cbea5e9139e6d4710e31efedef37247ac.zip
FreeBSD-src-3b2a4f1cbea5e9139e6d4710e31efedef37247ac.tar.gz
Vendor import of the Intel ACPI CA 20021002 drop.
Diffstat (limited to 'sys/contrib/dev/acpica/exstore.c')
-rw-r--r--sys/contrib/dev/acpica/exstore.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/exstore.c b/sys/contrib/dev/acpica/exstore.c
index d89abba..92caf43 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: 169 $
+ * $Revision: 172 $
*
*****************************************************************************/
@@ -199,7 +199,7 @@ AcpiExStore (
return_ACPI_STATUS (AE_OK);
}
- /*lint: -fallthrough */
+ /*lint -fallthrough */
default:
@@ -387,6 +387,13 @@ AcpiExStoreObjectToIndex (
{
AcpiUtRemoveReference (ObjDesc);
*(IndexDesc->Reference.Where) = NewDesc;
+
+ /* If same as the original source, add a reference */
+
+ if (NewDesc == SourceDesc)
+ {
+ AcpiUtAddReference (NewDesc);
+ }
}
break;
@@ -560,8 +567,12 @@ AcpiExStoreObjectToNode (
* Store the new NewDesc as the new value of the Name, and set
* the Name's type to that of the value being stored in it.
* SourceDesc reference count is incremented by AttachObject.
+ *
+ * Note: This may change the type of the node if an explicit store
+ * has been performed such that the node/object type has been
+ * changed.
*/
- Status = AcpiNsAttachObject (Node, NewDesc, TargetType);
+ Status = AcpiNsAttachObject (Node, NewDesc, NewDesc->Common.Type);
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
"Store %s into %s via Convert/Attach\n",
OpenPOWER on IntegriCloud