Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 24ab1d8c51a52a1e0606597a6a3a7db679d354ac
https://github.com/tianocore/edk2/commit/24ab1d8c51a52a1e0606597a6a3a7db679d354ac
Author: Abdul Lateef Attar <[email protected]>
Date: 2026-03-11 (Wed, 11 Mar 2026)
Changed paths:
M MdePkg/Include/IndustryStandard/AcpiAml.h
Log Message:
-----------
MdePkg: Add AML method argument count limit definition
Add AML_METHOD_MAX_NARGS macro to define the maximum number
of arguments (7) that an AML method can accept.
Ref: ACPI 6.5, Section 20.2.5.2 Named Objects Encoding -
MethodOp defines MethodFlags where ArgCount is encoded in
bits[2:0], allowing values 0-7 indicating the number of
arguments passed to the method.
Signed-off-by: Abdul Lateef Attar <[email protected]>
Commit: 1774a34cc518b0d337a0a7f4707d944dc78cb95d
https://github.com/tianocore/edk2/commit/1774a34cc518b0d337a0a7f4707d944dc78cb95d
Author: Abdul Lateef Attar <[email protected]>
Date: 2026-03-11 (Wed, 11 Mar 2026)
Changed paths:
M DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h
M DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c
Log Message:
-----------
DynamicTablesPkg/AmlLib: Refactor AmlCodeGenInvokeMethod API
Refactor AmlCodeGenInvokeMethod() to construct a proper
AML_METHOD_INVOC_OP wrapper node instead of attaching the method
name and argument nodes directly as siblings to the parent. This
aligns the implementation with AmlCodeGenReturnInvokeMethod().
The method invocation is now built as a structured node with:
- FixedArg[0]: method name string (NameString data node)
- FixedArg[1]: argument count (UINT8 data node)
- VarList: parameter nodes (integer, string, ArgObj, LocalObj)
Also add an optional OUT NewObjectNode parameter so callers can
retrieve the created MethodInvocation node, and make ParentNode
optional, matching the convention used by other AmlLib CodeGen APIs.
Signed-off-by: Abdul Lateef Attar <[email protected]>
Commit: cb4cbc521640f4a4ec4e0b1e83fe257d2956494a
https://github.com/tianocore/edk2/commit/cb4cbc521640f4a4ec4e0b1e83fe257d2956494a
Author: Abdul Lateef Attar <[email protected]>
Date: 2026-03-11 (Wed, 11 Mar 2026)
Changed paths:
M DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h
M DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c
Log Message:
-----------
DynamicTablesPkg/AmlLib: Adds API method returning method invocations
Introduce AmlCodeGenReturnInvokeMethod(), a new AML code generation API
that creates AML code for methods whose body returns the result of a
method invocation, i.e. Return(MethodName(args...)).
Supported parameter types for method arguments include:
- AmlMethodParamTypeInteger: Integer constants.
- AmlMethodParamTypeString: String literals.
- AmlMethodParamTypeArg: ArgObj references (Arg0-Arg6).
- AmlMethodParamTypeLocal: LocalObj references (Local0-Local7).
The resulting MethodInvocation node is wrapped in a Return statement
via AmlCodeGenReturn() and linked to the specified parent node.
Signed-off-by: Abdul Lateef Attar <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/f4f781831ff3...cb4cbc521640
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits