aboutsummaryrefslogtreecommitdiffstats
path: root/source/compiler/aslmethod.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-07-17 22:53:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-07-17 22:53:36 +0000
commitb1dc29fa09052190e87f93cf1888edea9c42df24 (patch)
treebc4012660993f740d685e5655598353a450706ec /source/compiler/aslmethod.c
parent93207c1c89bcf8c2291abed617712292c27920f3 (diff)
downloadsrc-b1dc29fa09052190e87f93cf1888edea9c42df24.tar.gz
src-b1dc29fa09052190e87f93cf1888edea9c42df24.zip
Import ACPICA 20200717.vendor/acpica/20200717
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=363292 svn path=/vendor-sys/acpica/20200717/; revision=363293; tag=vendor/acpica/20200717
Diffstat (limited to 'source/compiler/aslmethod.c')
-rw-r--r--source/compiler/aslmethod.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/compiler/aslmethod.c b/source/compiler/aslmethod.c
index ff6fd474193d..32b4b123f02e 100644
--- a/source/compiler/aslmethod.c
+++ b/source/compiler/aslmethod.c
@@ -306,6 +306,8 @@ MtMethodAnalysisWalkBegin (
{
ActualArgs = MtProcessParameterTypeList (NextType,
MethodInfo->ValidArgTypes);
+ MethodInfo->NumArguments = ActualArgs;
+ ArgNode->Asl.Value.Integer |= ActualArgs;
}
if ((MethodInfo->NumArguments) &&
@@ -671,6 +673,16 @@ MtProcessParameterTypeList (
UINT8 ParameterCount = 0;
+ if (ParamTypeOp && ParamTypeOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG)
+ {
+ /* Special case for a single parameter without braces */
+
+ TypeList[ParameterCount] =
+ MtProcessTypeOp (ParamTypeOp);
+
+ return (1);
+ }
+
while (ParamTypeOp)
{
TypeList[ParameterCount] =