audk/UefiCpuPkg/Library/MpInitLib
Jeff Fan ed66e0e3f4 UefiCpuPkg/MpInitLib: Allocate AP reset vector buffer under 1MB
In PeiMpInitLib, searching unallocated memory under in
EFI_HOB_TYPE_RESOURCE_DESCRIPTOR hobs to find the memory under 1MB for AP reset
vector. After End of PEI event triggered, we need to restore original the buffer
contents to avoid crash the OS on S3 boot.
In DxeMpInitLib, allocate the memory under 1MB for AP reset vector.

Add helper functions AllocateResetVector()/FreeResetVector() used by WakeupAp().

v3:
  1. Move SetTimer() from Patch #17 to Patch 16.

Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Michael Kinney <michael.d.kinney@intel.com>
2016-08-17 20:00:50 +08:00
..
Ia32 UefiCpuPkg/MpInitLib: Add MP_ASSEMBLY_ADDRESS_MAP 2016-08-17 19:59:01 +08:00
X64 UefiCpuPkg/MpInitLib: Add MP_ASSEMBLY_ADDRESS_MAP 2016-08-17 19:59:01 +08:00
DxeMpInitLib.inf UefiCpuPkg/MpInitLib: Add MicrocodeDetect() and load microcode on BSP 2016-08-17 20:00:23 +08:00
DxeMpInitLib.uni UefiCpuPkg/MpInitLib: Add two instances PeiMpInitLib and DxeMpInitLib 2016-08-17 19:58:07 +08:00
DxeMpLib.c UefiCpuPkg/MpInitLib: Allocate AP reset vector buffer under 1MB 2016-08-17 20:00:50 +08:00
Microcode.c UefiCpuPkg/MpInitLib: Add MicrocodeDetect() and load microcode on BSP 2016-08-17 20:00:23 +08:00
MpLib.c UefiCpuPkg/MpInitLib: Save CPU MP Data pointer 2016-08-17 20:00:28 +08:00
MpLib.h UefiCpuPkg/MpInitLib: Allocate AP reset vector buffer under 1MB 2016-08-17 20:00:50 +08:00
PeiMpInitLib.inf UefiCpuPkg/MpInitLib: Add MicrocodeDetect() and load microcode on BSP 2016-08-17 20:00:23 +08:00
PeiMpInitLib.uni UefiCpuPkg/MpInitLib: Add two instances PeiMpInitLib and DxeMpInitLib 2016-08-17 19:58:07 +08:00
PeiMpLib.c UefiCpuPkg/MpInitLib: Allocate AP reset vector buffer under 1MB 2016-08-17 20:00:50 +08:00