TianoCore EDK2 master
Loading...
Searching...
No Matches
SmmRelocation.c File Reference

Go to the source code of this file.

Functions

STATIC EFI_STATUS EFIAPI OnMpServices2Available (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
 
VOID RelocateSmBase (VOID)
 

Variables

STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR mMpServices2Notify
 

Detailed Description

Install a callback to do smm relocation.

Copyright (c) 2024, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SmmRelocation.c.

Function Documentation

◆ OnMpServices2Available()

STATIC EFI_STATUS EFIAPI OnMpServices2Available ( IN EFI_PEI_SERVICES **  PeiServices,
IN EFI_PEI_NOTIFY_DESCRIPTOR NotifyDescriptor,
IN VOID *  Ppi 
)

Notification function called when EDKII_PEI_MP_SERVICES2_PPI becomes available.

Parameters
[in]PeiServicesIndirect reference to the PEI Services Table.
[in]NotifyDescriptorAddress of the notification descriptor data structure.
[in]PpiAddress of the PPI that was installed.
Returns
Status of the notification. The status code returned from this function is ignored.

Definition at line 29 of file SmmRelocation.c.

◆ RelocateSmBase()

VOID RelocateSmBase ( VOID  )

Definition at line 65 of file SmmRelocation.c.

Variable Documentation

◆ mMpServices2Notify

Initial value:
= {
EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK |
EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
&gEdkiiPeiMpServices2PpiGuid,
}
STATIC EFI_STATUS EFIAPI OnMpServices2Available(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
Definition: SmmRelocation.c:29

Definition at line 57 of file SmmRelocation.c.