summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuS3DataDxe
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2018-10-17 09:01:15 +0800
committerEric Dong <eric.dong@intel.com>2018-10-22 11:19:48 +0800
commit38381e18bf08dadad91627949996d106612f4753 (patch)
treea69da4e17f6e37cce114b2e4a47e40a957cbd00f /UefiCpuPkg/CpuS3DataDxe
parent93324390582d6a5beaab226c74466e3b2497edca (diff)
downloadedk2-38381e18bf08dadad91627949996d106612f4753.tar.gz
edk2-38381e18bf08dadad91627949996d106612f4753.tar.bz2
edk2-38381e18bf08dadad91627949996d106612f4753.zip
UefiCpuPkg/CpuS3DataDxe: Keep old data if value already existed.
AcpiCpuData add new fields, keep these fields if old data already existed. Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'UefiCpuPkg/CpuS3DataDxe')
-rw-r--r--UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c b/UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c
index ef98239844..1b847e453a 100644
--- a/UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c
+++ b/UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c
@@ -259,6 +259,8 @@ CpuS3DataInitialize (
if (OldAcpiCpuData != NULL) {
AcpiCpuData->RegisterTable = OldAcpiCpuData->RegisterTable;
AcpiCpuData->PreSmmInitRegisterTable = OldAcpiCpuData->PreSmmInitRegisterTable;
+ AcpiCpuData->ApLocation = OldAcpiCpuData->ApLocation;
+ CopyMem (&AcpiCpuData->CpuStatus, &OldAcpiCpuData->CpuStatus, sizeof (CPU_STATUS_INFORMATION));
} else {
//
// Allocate buffer for empty RegisterTable and PreSmmInitRegisterTable for all CPUs