summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-01-12 00:52:40 +0000
committernjl <njl@FreeBSD.org>2005-01-12 00:52:40 +0000
commitd724817235abfea4d1628dfcc23d05cad5a87419 (patch)
tree0a73964e431836d3d9993ab0e67032711b7758eb /sys/contrib/dev/acpica
parentfd493b6d5cf85d29aeb338adb281ee6db8597472 (diff)
downloadFreeBSD-src-d724817235abfea4d1628dfcc23d05cad5a87419.zip
FreeBSD-src-d724817235abfea4d1628dfcc23d05cad5a87419.tar.gz
Fix handling of the implicit return case for methods called from an
external source (i.e., _STA). The previous case only handled calls occurring within AML. This should fix Toshibas, among others. Thanks to Robert Moore of Intel for the fix. MFC after: 2 days
Diffstat (limited to 'sys/contrib/dev/acpica')
-rw-r--r--sys/contrib/dev/acpica/dsutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/contrib/dev/acpica/dsutils.c b/sys/contrib/dev/acpica/dsutils.c
index f20fb39..13976b7 100644
--- a/sys/contrib/dev/acpica/dsutils.c
+++ b/sys/contrib/dev/acpica/dsutils.c
@@ -167,7 +167,8 @@ AcpiDsIsResultUsed (
* An executing method typically has no parent, since each method
* is parsed separately.
*/
- if (!Op->Common.Parent)
+ if (!Op->Common.Parent ||
+ Op->Common.Parent->Common.AmlOpcode == AML_SCOPE_OP)
{
/*
* If this is the last statement in the method, we know it is not a
OpenPOWER on IntegriCloud