|
TianoCore EDK2 master
|
#include "PiSmmCore.h"Go to the source code of this file.
Functions | |
| SMM_POOL_TYPE | UefiMemoryTypeToSmmPoolType (IN EFI_MEMORY_TYPE MemoryType) |
| VOID | SmmInitializeMemoryServices (IN UINTN SmramRangeCount, IN EFI_SMRAM_DESCRIPTOR *SmramRanges) |
| EFI_STATUS | InternalAllocPoolByIndex (IN EFI_MEMORY_TYPE PoolType, IN UINTN PoolIndex, OUT FREE_POOL_HEADER **FreePoolHdr) |
| STATIC EFI_STATUS | InternalFreePoolByIndex (IN FREE_POOL_HEADER *FreePoolHdr, IN POOL_TAIL *PoolTail OPTIONAL) |
| EFI_STATUS EFIAPI | SmmInternalAllocatePool (IN EFI_MEMORY_TYPE PoolType, IN UINTN Size, OUT VOID **Buffer) |
| EFI_STATUS EFIAPI | SmmAllocatePool (IN EFI_MEMORY_TYPE PoolType, IN UINTN Size, OUT VOID **Buffer) |
| EFI_STATUS EFIAPI | SmmInternalFreePool (IN VOID *Buffer) |
| EFI_STATUS EFIAPI | SmmFreePool (IN VOID *Buffer) |
Variables | |
| LIST_ENTRY | mSmmPoolLists [SmmPoolTypeMax][MAX_POOL_INDEX] |
| GLOBAL_REMOVE_IF_UNREFERENCED EFI_PHYSICAL_ADDRESS | gLoadModuleAtFixAddressSmramBase = 0 |
SMM Memory pool management functions.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Pool.c.
| EFI_STATUS InternalAllocPoolByIndex | ( | IN EFI_MEMORY_TYPE | PoolType, |
| IN UINTN | PoolIndex, | ||
| OUT FREE_POOL_HEADER ** | FreePoolHdr | ||
| ) |
Internal Function. Allocate a pool by specified PoolIndex.
| PoolType | Type of pool to allocate. |
| PoolIndex | Index which indicate the Pool size. |
| FreePoolHdr | The returned Free pool. |
| EFI_OUT_OF_RESOURCES | Allocation failed. |
| EFI_SUCCESS | Pool successfully allocated. |
| STATIC EFI_STATUS InternalFreePoolByIndex | ( | IN FREE_POOL_HEADER * | FreePoolHdr, |
| IN POOL_TAIL *PoolTail | OPTIONAL | ||
| ) |
| EFI_STATUS EFIAPI SmmAllocatePool | ( | IN EFI_MEMORY_TYPE | PoolType, |
| IN UINTN | Size, | ||
| OUT VOID ** | Buffer | ||
| ) |
Allocate pool of a particular type.
| PoolType | Type of pool to allocate. |
| Size | The amount of pool to allocate. |
| Buffer | The address to return a pointer to the allocated pool. |
| EFI_INVALID_PARAMETER | PoolType not valid. |
| EFI_OUT_OF_RESOURCES | Size exceeds max pool size or allocation failed. |
| EFI_SUCCESS | Pool successfully allocated. |
| EFI_STATUS EFIAPI SmmFreePool | ( | IN VOID * | Buffer | ) |
| VOID SmmInitializeMemoryServices | ( | IN UINTN | SmramRangeCount, |
| IN EFI_SMRAM_DESCRIPTOR * | SmramRanges | ||
| ) |
| EFI_STATUS EFIAPI SmmInternalAllocatePool | ( | IN EFI_MEMORY_TYPE | PoolType, |
| IN UINTN | Size, | ||
| OUT VOID ** | Buffer | ||
| ) |
Allocate pool of a particular type.
| PoolType | Type of pool to allocate. |
| Size | The amount of pool to allocate. |
| Buffer | The address to return a pointer to the allocated pool. |
| EFI_INVALID_PARAMETER | PoolType not valid. |
| EFI_OUT_OF_RESOURCES | Size exceeds max pool size or allocation failed. |
| EFI_SUCCESS | Pool successfully allocated. |
| EFI_STATUS EFIAPI SmmInternalFreePool | ( | IN VOID * | Buffer | ) |
| SMM_POOL_TYPE UefiMemoryTypeToSmmPoolType | ( | IN EFI_MEMORY_TYPE | MemoryType | ) |
| GLOBAL_REMOVE_IF_UNREFERENCED EFI_PHYSICAL_ADDRESS gLoadModuleAtFixAddressSmramBase = 0 |
| LIST_ENTRY mSmmPoolLists[SmmPoolTypeMax][MAX_POOL_INDEX] |