Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 37a33f02aa1ab89f392da7d06ec3578fda1b6182 https://github.com/tianocore/edk2/commit/37a33f02aa1ab89f392da7d06ec3578fda1b6182 Author: Lou, Yun <yun....@intel.com> Date: 2021-10-20 (Wed, 20 Oct 2021)
Changed paths: M UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c Log Message: ----------- 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. Signed-off-by: Jason Lou <yun....@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits