TianoCore EDK2 master
SmmCpuRendezvousLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SmmCpuRendezvousProtocolNotify (IN CONST EFI_GUID *Protocol, IN VOID *Interface, IN EFI_HANDLE Handle)
 
EFI_STATUS EFIAPI SmmWaitForAllProcessor (IN BOOLEAN BlockingMode)
 

Variables

STATIC EDKII_SMM_CPU_RENDEZVOUS_PROTOCOLmSmmCpuRendezvous = NULL
 
STATIC VOIDmRegistration = NULL
 

Detailed Description

SMM CPU Rendezvous sevice implement.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SmmCpuRendezvousLib.c.

Function Documentation

◆ SmmCpuRendezvousProtocolNotify()

EFI_STATUS EFIAPI SmmCpuRendezvousProtocolNotify ( IN CONST EFI_GUID Protocol,
IN VOID Interface,
IN EFI_HANDLE  Handle 
)

Callback function to wait Smm cpu rendezvous service located.

SmmCpuRendezvousLib need to support MM_STANDALONE and DXE_SMM_DRIVER driver. So do not use library constructor to locate the protocol.

Parameters
[in]ProtocolPoints to the protocol's unique identifier.
[in]InterfacePoints to the interface instance.
[in]HandleThe handle on which the interface was installed.
Return values
EFI_SUCCESSNotification runs successfully.

Definition at line 35 of file SmmCpuRendezvousLib.c.

◆ SmmWaitForAllProcessor()

EFI_STATUS EFIAPI SmmWaitForAllProcessor ( IN BOOLEAN  BlockingMode)

This routine wait for all AP processors to arrive in SMM.

Parameters
[in]BlockingModeBlocking mode or non-blocking mode.
Return values
EFI_SUCCESSAll avaiable APs arrived.
EFI_TIMEOUTWait for all APs until timeout.
OTHERFail to register SMM CPU Rendezvous service Protocol.

Definition at line 64 of file SmmCpuRendezvousLib.c.

Variable Documentation

◆ mRegistration

STATIC VOID* mRegistration = NULL

Definition at line 18 of file SmmCpuRendezvousLib.c.

◆ mSmmCpuRendezvous

Definition at line 17 of file SmmCpuRendezvousLib.c.