]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/MpInitLib/DxeMpLib.c
UefiCpuPkg/MpInitLib: Move allocating reserved memory for AP loop code
authorJeff Fan <jeff.fan@intel.com>
Wed, 24 Aug 2016 13:58:04 +0000 (21:58 +0800)
committerJeff Fan <jeff.fan@intel.com>
Thu, 25 Aug 2016 08:12:37 +0000 (16:12 +0800)
commit5183fb3736bf2eb102474c6db19bf9a00be3d5f5
treeb0ec9370ddd0eef04feed2c36df3598e57b9f2dd
parentc1192210604f51c8397864293b1bdc00c5242c58
UefiCpuPkg/MpInitLib: Move allocating reserved memory for AP loop code

In Exit Boot Services callback function, we cannot use allocate memory services
because it may change the memory map that has been gotten by OS.

This fix is to move allocating reserved memory for AP loop code to
InitMpGlobalData() and save the memory address in one global variable.

Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c