diff options
author | njl <njl@FreeBSD.org> | 2005-01-12 00:52:40 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-01-12 00:52:40 +0000 |
commit | d724817235abfea4d1628dfcc23d05cad5a87419 (patch) | |
tree | 0a73964e431836d3d9993ab0e67032711b7758eb /sys/contrib/dev/acpica/dsutils.c | |
parent | fd493b6d5cf85d29aeb338adb281ee6db8597472 (diff) | |
download | FreeBSD-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/dsutils.c')
-rw-r--r-- | sys/contrib/dev/acpica/dsutils.c | 3 |
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 |