2 The microcode patch HOB is used to store the information of:
3 A. Base address and size of the loaded microcode patches data;
4 B. Detected microcode patch for each processor within system.
6 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef _MICROCODE_PATCH_HOB_H_
12 #define _MICROCODE_PATCH_HOB_H_
14 extern EFI_GUID gEdkiiMicrocodePatchHobGuid
;
17 // The EDKII microcode patch HOB will be produced by MpInitLib and it can be
18 // consumed by modules that want to detect/apply microcode patches.
22 // The base address of the microcode patches data after being loaded into
25 UINT64 MicrocodePatchAddress
;
27 // The total size of the loaded microcode patches.
29 UINT64 MicrocodePatchRegionSize
;
31 // The number of processors within the system.
33 UINT32 ProcessorCount
;
35 // An array with 'ProcessorCount' elements that stores the offset (with
36 // regard to 'MicrocodePatchAddress') of the detected microcode patch
37 // (including the CPU_MICROCODE_HEADER data structure) for each processor.
38 // If no microcode patch is detected for certain processor, the relating
39 // element will be set to MAX_UINT64.
41 UINT64 ProcessorSpecificPatchOffset
[0];
42 } EDKII_MICROCODE_PATCH_HOB
;