From 21a2c8ae2a3802198838a9b5e3ae5a7d2ba0e7d8 Mon Sep 17 00:00:00 2001 From: Yuanhao Xie Date: Fri, 24 May 2024 14:45:09 +0800 Subject: UefiCpuPkg: Add Unblock Region HOB definition Add Unblock Region HOB which defines the GUIDed HOB that describes the memory region to be unblocked in MM environment. Signed-off-by: Yuanhao Xie Co-authored-by: Jiaxin Wu Co-authored-by: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Star Zeng Cc: Hongbin1 Zhang Cc: Wei6 Xu Cc: Dun Tan --- UefiCpuPkg/Include/Guid/MmUnblockRegion.h | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 UefiCpuPkg/Include/Guid/MmUnblockRegion.h (limited to 'UefiCpuPkg/Include') diff --git a/UefiCpuPkg/Include/Guid/MmUnblockRegion.h b/UefiCpuPkg/Include/Guid/MmUnblockRegion.h new file mode 100644 index 0000000000..f6a33c348b --- /dev/null +++ b/UefiCpuPkg/Include/Guid/MmUnblockRegion.h @@ -0,0 +1,42 @@ +/** @file + Defines the GUIDed HOB that describes the memory region to be unblocked in MM environment. + + Copyright (c) 2024, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef MM_UNBLOCK_REGION_H_ +#define MM_UNBLOCK_REGION_H_ + +/// +/// The GUID of the UnblockRegion GUIDed HOB. +/// +#define MM_UNBLOCK_REGION_HOB_GUID \ + { \ + 0x7c316fb3, 0x849e, 0x4ee7, {0x87, 0xfc, 0x16, 0x2d, 0x0b, 0x03, 0x42, 0xbf } \ + } + +/// +/// The structure defines the data layout of the UnblockRegion GUIDed HOB. +/// +typedef struct { + /// + /// Physical address of the first byte in the memory region. PhysicalStart must be + /// aligned on a 4 KiB boundary. + /// + EFI_PHYSICAL_ADDRESS PhysicalStart; + + /// + /// Number of 4 KiB pages in the memory region. + /// + UINT64 NumberOfPages; + + /// + /// GUID to identify the memory region. + /// + EFI_GUID IdentifierGuid; +} MM_UNBLOCK_REGION; + +extern EFI_GUID gMmUnblockRegionHobGuid; + +#endif -- cgit v1.2.3