TianoCore EDK2 master
Loading...
Searching...
No Matches
ShadowMicrocode.h File Reference

Go to the source code of this file.

Data Structures

struct  EDKII_PEI_MICROCODE_CPU_ID
 
struct  _EDKII_PEI_SHADOW_MICROCODE_PPI
 

Macros

#define EDKII_PEI_SHADOW_MICROCODE_PPI_GUID
 

Typedefs

typedef struct _EDKII_PEI_SHADOW_MICROCODE_PPI EDKII_PEI_SHADOW_MICROCODE_PPI
 
typedef EFI_STATUS(EFIAPI * EDKII_PEI_SHADOW_MICROCODE) (IN EDKII_PEI_SHADOW_MICROCODE_PPI *This, IN UINTN CpuIdCount, IN EDKII_PEI_MICROCODE_CPU_ID *MicrocodeCpuId, OUT UINTN *BufferSize, OUT VOID **Buffer)
 

Variables

EFI_GUID gEdkiiPeiShadowMicrocodePpiGuid
 

Detailed Description

This file declares EDKII Shadow Microcode PPI.

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

Definition in file ShadowMicrocode.h.

Macro Definition Documentation

◆ EDKII_PEI_SHADOW_MICROCODE_PPI_GUID

#define EDKII_PEI_SHADOW_MICROCODE_PPI_GUID
Value:
{ \
0x430f6965, 0x9a69, 0x41c5, { 0x93, 0xed, 0x8b, 0xf0, 0x64, 0x35, 0xc1, 0xc6 } \
}

Definition at line 12 of file ShadowMicrocode.h.

Typedef Documentation

◆ EDKII_PEI_SHADOW_MICROCODE

typedef EFI_STATUS(EFIAPI * EDKII_PEI_SHADOW_MICROCODE) (IN EDKII_PEI_SHADOW_MICROCODE_PPI *This, IN UINTN CpuIdCount, IN EDKII_PEI_MICROCODE_CPU_ID *MicrocodeCpuId, OUT UINTN *BufferSize, OUT VOID **Buffer)

Shadow microcode update patches to memory.

The function is used for shadowing microcode update patches to a continuous memory. It shall allocate memory buffer and only shadow the microcode patches for those processors specified by MicrocodeCpuId array. The checksum verification may be skiped in this function so the caller must perform checksum verification before using the microcode patches in returned memory buffer.

Parameters
[in]ThisThe PPI instance pointer.
[in]CpuIdCountNumber of elements in MicrocodeCpuId array.
[in]MicrocodeCpuIdA pointer to an array of EDKII_PEI_MICROCODE_CPU_ID structures.
[out]BufferSizePointer to receive the total size of Buffer.
[out]BufferPointer to receive address of allocated memory with microcode patches data in it.
Return values
EFI_SUCCESSThe microcode has been shadowed to memory.
EFI_OUT_OF_RESOURCESThe operation fails due to lack of resources.

Definition at line 46 of file ShadowMicrocode.h.

◆ EDKII_PEI_SHADOW_MICROCODE_PPI