UefiCpuPkg: Implements MmSaveStateLib for Intel

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

Implements MmSaveStateLib library interfaces
to read and write save state
registers for Intel processor family.

Moves Intel and AMD common functionality to common area.

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-04-06 16:52:09 +05:30
committed by mergify[bot]
parent 867851dc30
commit 065fa2dcc2
3 changed files with 447 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
## @file
# SMM Smram save state service lib.
#
# This is SMM 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 = IntelMmSaveStateLib
FILE_GUID = 37E8137B-9F74-4250-8951-7A970A3C39C0
MODULE_TYPE = DXE_SMM_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = MmSaveStateLib
[Sources]
MmSaveState.h
MmSaveStateCommon.c
IntelMmSaveState.c
[Packages]
MdePkg/MdePkg.dec
UefiCpuPkg/UefiCpuPkg.dec
[LibraryClasses]
BaseLib
BaseMemoryLib
DebugLib
SmmServicesTableLib