From 8079d4dc4f8ac23e02b02996e326cac4099b3e49 Mon Sep 17 00:00:00 2001 From: "Li, Zhihao" Date: Mon, 25 Apr 2022 16:47:27 +0800 Subject: 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 Cc: Liming Gao Cc: Eric Dong Cc: Ray Ni Cc: Michael Kubacki Cc: Siyuan Fu Signed-off-by: Zhihao Li Acked-by: Liming Gao --- UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h | 27 ------------------------ 1 file changed, 27 deletions(-) delete mode 100644 UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h (limited to 'UefiCpuPkg/Include') 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.
- 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 -- cgit v1.2.3