TianoCore EDK2 master
Loading...
Searching...
No Matches
SmmRelocationLib.h File Reference
#include <Ppi/MpServices2.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SmmRelocationInit (IN EDKII_PEI_MP_SERVICES2_PPI *MpServices2)
 

Detailed Description

Header file for SMM Relocation Library.

The SmmRelocationLib class provides the SmmRelocationInit() interface for platform to do the smbase relocation, which shall provide below 2 functionalities:

  1. Relocate SmBases for each processor.
  2. Create the SmBase HOB (gSmmBaseHobGuid).

With SmmRelocationLib, PiSmmCpuDxeSmm driver (which runs at a later phase) shall:

  1. Consume the gSmmBaseHobGuid for the relocated smbase for each Processor.
  2. Execute early SMM init.

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

Definition in file SmmRelocationLib.h.

Function Documentation

◆ SmmRelocationInit()

EFI_STATUS EFIAPI SmmRelocationInit ( IN EDKII_PEI_MP_SERVICES2_PPI MpServices2)

CPU SmmBase Relocation Init.

This function is to relocate CPU SmmBase.

Parameters
[in]MpServices2Pointer to this instance of the MpServices.
Return values
EFI_SUCCESSCPU SmmBase Relocated successfully.
OthersCPU SmmBase Relocation failed.

Definition at line 426 of file SmmRelocationLib.c.