diff options
author | Abdul Lateef Attar <AbdulLateef.Attar@amd.com> | 2024-08-02 04:01:16 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-02 08:05:57 +0000 |
commit | 4f5de749cb2247a4ead21523f2d9deb389291636 (patch) | |
tree | 07ee68323bb95b722a8db725d0cf0766ab1ede8d /DynamicTablesPkg | |
parent | bc0fc7563780191622146593998b355f383041a2 (diff) | |
download | edk2-4f5de749cb2247a4ead21523f2d9deb389291636.tar.gz edk2-4f5de749cb2247a4ead21523f2d9deb389291636.tar.bz2 edk2-4f5de749cb2247a4ead21523f2d9deb389291636.zip |
DynamicTablesPkg/DynamicTableManagerDxe: Adds X64 GetAcpiTablePresenceInfo
Adds X64 specific GetAcpiTablePresenceInfo() function,
which checks for mandatory ACPI tables.
Cc: Sami Mujawar <Sami.Mujawar@arm.com>
Cc: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r-- | DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | DynamicTablesPkg/Drivers/DynamicTableManagerDxe/X64/X64DynamicTableManager.c (renamed from DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerNull.c) | 13 |
2 files changed, 7 insertions, 9 deletions
diff --git a/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf b/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf index 00d03e75be..c982b24c2a 100644 --- a/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf +++ b/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf @@ -2,6 +2,7 @@ # Module that drives the table generation and installation process.
#
# Copyright (c) 2017 - 2019, ARM Limited. All rights reserved.
+# Copyright (c) 2024 Advanced Micro Devices, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
@@ -28,7 +29,7 @@ Arm/ArmDynamicTableManager.c
[Sources.IA32, Sources.X64]
- DynamicTableManagerNull.c
+ X64/X64DynamicTableManager.c
[Packages]
MdePkg/MdePkg.dec
diff --git a/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerNull.c b/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/X64/X64DynamicTableManager.c index d9b727468a..a5457f383d 100644..100755 --- a/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerNull.c +++ b/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/X64/X64DynamicTableManager.c @@ -1,7 +1,8 @@ /** @file
- Common Dynamic Table Manager Dxe
+ X64 Dynamic Table Manager Dxe
Copyright (c) 2024, Arm Limited. All rights reserved.
+ Copyright (c) 2024 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -25,11 +26,9 @@ ///
/// Array containing the ACPI tables to check.
-/// This is a dummy list only existing for build purpose.
-/// The FADT table must be placed at index 0.
///
-ACPI_TABLE_PRESENCE_INFO mAcpiVerifyTables[] = {
- { EStdAcpiTableIdFadt, EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE, "FADT", TRUE, 0 },
+STATIC ACPI_TABLE_PRESENCE_INFO mAcpiVerifyTables[] = {
+ { EStdAcpiTableIdFadt, EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE, "FADT", TRUE, 0 }
};
/** Get the arch specific ACPI table presence information.
@@ -40,7 +39,6 @@ ACPI_TABLE_PRESENCE_INFO mAcpiVerifyTables[] = { -1 if absent.
@retval EFI_SUCCESS Success.
- @retval EFI_UNSUPPORTED Unsupported.
**/
EFI_STATUS
EFIAPI
@@ -50,10 +48,9 @@ GetAcpiTablePresenceInfo ( OUT INT32 *FadtIndex
)
{
- // Dummy function - Not Implemented.
*PresenceArray = mAcpiVerifyTables;
*PresenceArrayCount = ARRAY_SIZE (mAcpiVerifyTables);
*FadtIndex = ACPI_TABLE_VERIFY_FADT;
- return EFI_UNSUPPORTED;
+ return EFI_SUCCESS;
}
|