board_inspector: allow ConstObj to be used as a TermObj

While not allowed by ACPI specification, using a ConstObj (e.g. OneOp) as a
term in a TermList IS witnessed in the DSDT of some BIOS. This patch allows
ConstObj to act as a TermObj so that a TermList can contain a ConstObj as a
statement (which is essentially no-op).

This patch is added in v2 of the series.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao 2021-08-03 15:13:45 +08:00 committed by wenlingz
parent 6be3f93173
commit ae496de9d8
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ RevisionOp = (AML_REVISION_OP,)
################################################################################
Object = ["NameSpaceModifierObj", "NamedObj"]
TermObj = ["Object", "StatementOpcode", "ExpressionOpcode"]
TermObj = ["Object", "StatementOpcode", "ExpressionOpcode", "ConstObj"]
TermList = ("TermObj*",)
TermArg = ["ExpressionOpcode", "DataObject", "ArgObj", "LocalObj"]
# MethodInvocation is defined in parser.py