[Bug 3634] Cpu feature data stored in memory by PEI AllocatePool() may be migrated to different location when CpuS3 reads


bugzilla-daemon@...
 

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

Jason <yun.lou@intel.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|IN_PROGRESS |RESOLVED
Resolution|--- |FIXED

--- Comment #3 from Jason <yun.lou@intel.com> ---
Have merged the code change into master, close this bug.

SHA-1: 37a33f02aa1ab89f392da7d06ec3578fda1b6182

* UefiCpuPkg: Cpu feature data stored in memory may be migrated

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3634

The memory allocated through "PeiAllocatePool" is located in HOB, and
in DXE phase, the HOB will be migrated to a different location.
After the migration, the data stored in the HOB stays the same, but the
address of pointer to the memory(such as the pointers in ACPI_CPU_DATA
structure) changes, which may cause "PiSmmCpuDxeSmm" driver can't find
the memory(the pointers in ACPI_CPU_DATA structure) that allocated in
"PeiRegisterCpuFeaturesLib", so use "PeiAllocatePages" to allocate
memory instead.

--
You are receiving this mail because:
You are on the CC list for the bug.