UefiCpuPkg: Implements MmSaveStateLib library instance

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182

Implements MmSaveStateLib Library class for
AMD cpu family.

Cc: Paul Grimes <paul.grimes@amd.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>

Signed-off-by: Abdul Lateef Attar <abdattar@amd.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
This commit is contained in:
Abdul Lateef Attar
2023-01-10 17:00:37 +05:30
committed by mergify[bot]
parent 4f3ddc6e15
commit 775b337c78
5 changed files with 572 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
## @file
# MM Smram save state service lib.
#
# This is MM Smram save state service lib that provide service to read and
# save savestate area registers.
#
# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 1.29
BASE_NAME = AmdMmSaveStateLib
FILE_GUID = FB7D0A60-E8D4-4EFA-90AA-B357BC569879
MODULE_TYPE = DXE_SMM_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = MmSaveStateLib
[Sources]
MmSaveState.h
MmSaveStateCommon.c
AmdMmSaveState.c
[Packages]
MdePkg/MdePkg.dec
UefiCpuPkg/UefiCpuPkg.dec
[LibraryClasses]
BaseLib
BaseMemoryLib
DebugLib
SmmServicesTableLib