summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/nseval.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-04-14 02:10:27 +0000
committernjl <njl@FreeBSD.org>2004-04-14 02:10:27 +0000
commit3c67c2e8d58f25daaed0d50f5d4355084f1faf87 (patch)
tree9c760be068e0b25d22acbac5eaeba299b68429ff /sys/contrib/dev/acpica/nseval.c
parent61c302fc074304c548f2de409a49f0c6c9564470 (diff)
downloadFreeBSD-src-3c67c2e8d58f25daaed0d50f5d4355084f1faf87.zip
FreeBSD-src-3c67c2e8d58f25daaed0d50f5d4355084f1faf87.tar.gz
Import ACPI-CA 20040402 distribution.
Diffstat (limited to 'sys/contrib/dev/acpica/nseval.c')
-rw-r--r--sys/contrib/dev/acpica/nseval.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/contrib/dev/acpica/nseval.c b/sys/contrib/dev/acpica/nseval.c
index cb509d3..688f92b 100644
--- a/sys/contrib/dev/acpica/nseval.c
+++ b/sys/contrib/dev/acpica/nseval.c
@@ -2,7 +2,7 @@
*
* Module Name: nseval - Object evaluation interfaces -- includes control
* method lookup and execution.
- * $Revision: 124 $
+ * $Revision: 125 $
*
******************************************************************************/
@@ -401,6 +401,16 @@ AcpiNsEvaluateByHandle (
}
/*
+ * For a method alias, we must grab the actual method node
+ * so that proper scoping context will be established
+ * before execution.
+ */
+ if (AcpiNsGetType (Node) == ACPI_TYPE_LOCAL_METHOD_ALIAS)
+ {
+ Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, Node->Object);
+ }
+
+ /*
* Two major cases here:
* 1) The object is an actual control method -- execute it.
* 2) The object is not a method -- just return it's current
OpenPOWER on IntegriCloud