]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/MdePkg.dsc
MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.
authorLi, Zhihao <zhihao.li@intel.com>
Mon, 25 Apr 2022 08:47:27 +0000 (16:47 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 9 May 2022 02:04:11 +0000 (02:04 +0000)
commit8079d4dc4f8ac23e02b02996e326cac4099b3e49
tree70448c3950d1028538a948723c60fe4f1353a78f
parent247a0fc65e5deea58a1486a0e506bc38fd9bed6b
MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.

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

UefiCpuPkg define a new Protocol with the new services
SmmWaitForAllProcessor(), which can be used by SMI handler
to optionally wait for other APs to complete SMM rendezvous in
relaxed AP mode.

VariableSmm and VariableStandaloneMM driver in MdeModulePkg need
to use this services but MdeModulePkg can't depend on UefiCpuPkg.

Thus, the solution is moving SmmCpuRendezvouslib.h from UefiCpuPkg
to MdePkg and creating SmmCpuRendezvousLib NullLib version
implementation in MdePkg as dependency for the pkg that can't
depend on UefiCpuPkg.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Michael Kubacki <mikuback@linux.microsoft.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Zhihao Li <zhihao.li@intel.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Include/Library/SmmCpuRendezvousLib.h [new file with mode: 0644]
MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.c [new file with mode: 0644]
MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.inf [new file with mode: 0644]
MdePkg/MdeLibs.dsc.inc
MdePkg/MdePkg.dec
MdePkg/MdePkg.dsc
UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h [deleted file]
UefiCpuPkg/UefiCpuPkg.dec