]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MpInitLib: Add two instances PeiMpInitLib and DxeMpInitLib
authorJeff Fan <jeff.fan@intel.com>
Wed, 20 Jul 2016 13:56:58 +0000 (21:56 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 17 Aug 2016 11:58:07 +0000 (19:58 +0800)
commit3e8ad6bd7684502c6a57796a57fb7c6dbe3ec1c5
tree61beb6c186a7d541f5b8fca0a04e91d5183e2c0b
parent87896d03f6f71e7d7f31b7b56f3d4bc9340bb899
UefiCpuPkg/MpInitLib: Add two instances PeiMpInitLib and DxeMpInitLib

Add two MP Initialize Library instances PeiMpInitLib.inf and DxeMpInitLib.inf
with NULL implementation.

One PeiMpInitLib.inf is consumed by PEI MP driver. Another DxeMpInitLib.inf is
consumed by DXE MP driver.

Place MpInitLibStartupAllAPs()/MpInitLibStartupThisAp()/MpInitLibSwitchBSP()/
MpInitLibEnableDisableAP() into PeiMpLib.c and DxeMpLib.c, because they have
the different implementations and will be updated in latter patches.

v5:
  1. Add back PeiExceptionHandlerLib.inf in UefiCpuPkg.dsc. It is removed
     incorrectly.

v4:
  1. Return EFI_UNSUPPORTED instead of EFI_SUCCESS for NULL implementation of
     all Functions.
  2. Sync MpInitLibxxx functions header updating described in v4 part of Patch
     #4.

v3:
  1. Rename MpInitLibSwitchBsp to MpInitLibSwitchBSP to match PI spec

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: Giri P Mudusuru <giri.p.mudusuru@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>
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.uni [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/MpLib.c [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/MpLib.h [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.uni [new file with mode: 0644]
UefiCpuPkg/Library/MpInitLib/PeiMpLib.c [new file with mode: 0644]
UefiCpuPkg/UefiCpuPkg.dsc