TianoCore EDK2 master
|
#include <Protocol/SmMonitorInit.h>
Go to the source code of this file.
Functions | |
VOID | StmGen4GPageTable (IN UINTN PageTableBase) |
UINT32 EFIAPI | SmmStmExceptionHandler (IN OUT STM_PROTECTION_EXCEPTION_STACK_FRAME Context) |
EFI_SM_MONITOR_STATE EFIAPI | GetMonitorState (VOID) |
EFI_STATUS EFIAPI | LoadMonitor (IN EFI_PHYSICAL_ADDRESS StmImage, IN UINTN StmImageSize) |
EFI_STATUS EFIAPI | AddPiResource (IN STM_RSC *ResourceList, IN UINT32 NumEntries OPTIONAL) |
EFI_STATUS EFIAPI | DeletePiResource (IN STM_RSC *ResourceList, IN UINT32 NumEntries OPTIONAL) |
EFI_STATUS EFIAPI | GetPiResource (OUT STM_RSC *ResourceList, IN OUT UINT32 *ResourceSize) |
VOID | StmSmmConfigurationTableInit (VOID) |
VOID | NotifyStmResourceChange (IN VOID *StmResource) |
VOID * | GetStmResource (VOID) |
VOID EFIAPI | SmmCpuFeaturesLibStmSmiEntryFixupAddress () |
SMM STM support
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmmStm.h.
EFI_STATUS EFIAPI AddPiResource | ( | IN STM_RSC * | ResourceList, |
IN UINT32 NumEntries | OPTIONAL | ||
) |
Add resources in list to database. Allocate new memory areas as needed.
ResourceList | A pointer to resource list to be added |
NumEntries | Optional number of entries. If 0, list must be terminated by END_OF_RESOURCES. |
EFI_SUCCESS | If resources are added |
EFI_INVALID_PARAMETER | If nested procedure detected resource failer |
EFI_OUT_OF_RESOURCES | If nested procedure returned it and we cannot allocate more areas. |
EFI_STATUS EFIAPI DeletePiResource | ( | IN STM_RSC * | ResourceList, |
IN UINT32 NumEntries | OPTIONAL | ||
) |
Delete resources in list to database.
ResourceList | A pointer to resource list to be deleted NULL means delete all resources. |
NumEntries | Optional number of entries. If 0, list must be terminated by END_OF_RESOURCES. |
EFI_SUCCESS | If resources are deleted |
EFI_INVALID_PARAMETER | If nested procedure detected resource failer |
EFI_SM_MONITOR_STATE EFIAPI GetMonitorState | ( | VOID | ) |
EFI_STATUS EFIAPI GetPiResource | ( | OUT STM_RSC * | ResourceList, |
IN OUT UINT32 * | ResourceSize | ||
) |
Get BIOS resources.
ResourceList | A pointer to resource list to be filled |
ResourceSize | On input it means size of resource list input. On output it means size of resource list filled, or the size of resource list to be filled if size of too small. |
EFI_SUCCESS | If resources are returned. |
EFI_BUFFER_TOO_SMALL | If resource list buffer is too small to hold the whole resources. |
VOID * GetStmResource | ( | VOID | ) |
EFI_STATUS EFIAPI LoadMonitor | ( | IN EFI_PHYSICAL_ADDRESS | StmImage, |
IN UINTN | StmImageSize | ||
) |
Load STM image to MSEG.
StmImage | STM image |
StmImageSize | STM image size |
EFI_SUCCESS | Load STM to MSEG successfully |
EFI_BUFFER_TOO_SMALL | MSEG is smaller than minimal requirement of STM image |
Load STM image to MSEG.
StmImage | STM image |
StmImageSize | STM image size |
EFI_SUCCESS | Load STM to MSEG successfully |
EFI_ALREADY_STARTED | STM image is already loaded to MSEG |
EFI_BUFFER_TOO_SMALL | MSEG is smaller than minimal requirement of STM image |
EFI_UNSUPPORTED | MSEG is not enabled |
VOID NotifyStmResourceChange | ( | IN VOID * | StmResource | ) |
This function notify STM resource change.
StmResource | BIOS STM resource |
VOID EFIAPI SmmCpuFeaturesLibStmSmiEntryFixupAddress | ( | ) |
This function fixes up the address of the global variable or function referred in SmiEntry assembly files to be the absolute address.
UINT32 EFIAPI SmmStmExceptionHandler | ( | IN OUT STM_PROTECTION_EXCEPTION_STACK_FRAME | Context | ) |
This is SMM exception handle. Consumed by STM when exception happen.
Context | STM protection exception stack frame |
Definition at line 65 of file SmmStmSupport.c.
Create 4G page table for STM. 2M PAE page table in X64 version.
PageTableBase | The page table base in MSEG |
Create 4G page table for STM. 4M Non-PAE page table in IA32 version.
PageTableBase | The page table base in MSEG |
Definition at line 30 of file SmmStmSupport.c.