summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Include/Library
diff options
context:
space:
mode:
authorLi, Zhihao <zhihao.li@intel.com>2022-04-25 16:47:27 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-05-09 02:04:11 +0000
commit8079d4dc4f8ac23e02b02996e326cac4099b3e49 (patch)
tree70448c3950d1028538a948723c60fe4f1353a78f /UefiCpuPkg/Include/Library
parent247a0fc65e5deea58a1486a0e506bc38fd9bed6b (diff)
downloadedk2-8079d4dc4f8ac23e02b02996e326cac4099b3e49.tar.gz
edk2-8079d4dc4f8ac23e02b02996e326cac4099b3e49.tar.bz2
edk2-8079d4dc4f8ac23e02b02996e326cac4099b3e49.zip
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>
Diffstat (limited to 'UefiCpuPkg/Include/Library')
-rw-r--r--UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h b/UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h
deleted file mode 100644
index 82e459e910..0000000000
--- a/UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/** @file
- SMM CPU Rendezvous library header file.
-
- Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
-
-**/
-
-#ifndef SMM_CPU_RENDEZVOUS_H_
-#define SMM_CPU_RENDEZVOUS_H_
-
-/**
- This routine wait for all AP processors to arrive in SMM.
-
- @param[in] BlockingMode Blocking mode or non-blocking mode.
-
- @retval EFI_SUCCESS All processors checked in to SMM.
- @retval EFI_TIMEOUT Wait for all APs until timeout.
-
-**/
-EFI_STATUS
-EFIAPI
-SmmWaitForAllProcessor (
- IN BOOLEAN BlockingMode
- );
-
-#endif