]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.c
MdePkg: add SmmCpuRendezvousLib.h and SmmCpuRendezvousLibNull implement.
[mirror_edk2.git] / MdePkg / Library / SmmCpuRendezvousLibNull / SmmCpuRendezvousLibNull.c
diff --git a/MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.c b/MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.c
new file mode 100644 (file)
index 0000000..474195b
--- /dev/null
@@ -0,0 +1,29 @@
+/** @file\r
+  SMM CPU Rendezvous sevice implement.\r
+\r
+  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#include <Library/DebugLib.h>\r
+#include <Library/SmmCpuRendezvousLib.h>\r
+\r
+/**\r
+  This routine wait for all AP processors to arrive in SMM.\r
+\r
+  @param[in] BlockingMode  Blocking mode or non-blocking mode.\r
+\r
+  @retval EFI_SUCCESS  All avaiable APs arrived.\r
+  @retval EFI_TIMEOUT  Wait for all APs until timeout.\r
+  @retval OTHER        Fail to register SMM CPU Rendezvous service Protocol.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+SmmWaitForAllProcessor (\r
+  IN BOOLEAN  BlockingMode\r
+  )\r
+{\r
+  ASSERT (FALSE);\r
+  return EFI_SUCCESS;\r
+}\r