mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
9332439058
commit
38381e18bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue