DynamicTablesPkg: Use AML_NAME_SEG_SIZE define

Use the newly introduced defined value in:
MdePkg/Include/IndustryStandard/AcpiAml.h

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Pierre Gondois 2021-06-01 23:04:50 +01:00 committed by mergify[bot]
parent 039e07f626
commit 1f515342d8
3 changed files with 5 additions and 12 deletions

View File

@ -1,7 +1,7 @@
/** @file
SSDT CMN-600 AML Table Generator.
Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@ -511,7 +511,7 @@ BuildSsdtCmn600TableEx (
UINT64 Index;
CM_ARM_CMN_600_INFO * Cmn600Info;
UINT32 Cmn600Count;
CHAR8 NewName[5];
CHAR8 NewName[AML_NAME_SEG_SIZE + 1];
EFI_ACPI_DESCRIPTION_HEADER ** TableList;
ASSERT (This != NULL);

View File

@ -1,7 +1,7 @@
/** @file
SSDT Serial Port Table Generator.
Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@ -171,7 +171,7 @@ BuildSsdtSerialPortTableEx (
CM_ARM_SERIAL_PORT_INFO * SerialPortInfo;
UINT32 SerialPortCount;
UINTN Index;
CHAR8 NewName[5];
CHAR8 NewName[AML_NAME_SEG_SIZE + 1];
UINT64 Uid;
EFI_ACPI_DESCRIPTION_HEADER ** TableList;

View File

@ -1,7 +1,7 @@
/** @file
AML Defines.
Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@ -138,13 +138,6 @@ typedef enum EAmlParseIndex {
*/
#define AML_FIELD_NAMED_OP 0x04
/** Size of a NameSeg.
Cf. ACPI 6.3 specification, s20.2.
@ingroup TreeStructures
*/
#define AML_NAME_SEG_SIZE 4U
/** AML object types.
The ACPI specification defines several object types. They are listed