2019-04-11 17:51:22 +02:00
|
|
|
## @file
|
|
|
|
# UEFI Payload Package
|
|
|
|
#
|
|
|
|
# Provides drivers and definitions to create uefi payload for bootloaders.
|
|
|
|
#
|
2021-06-10 03:49:17 +02:00
|
|
|
# Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>
|
2019-04-11 17:51:22 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
DEC_SPECIFICATION = 0x00010005
|
|
|
|
PACKAGE_NAME = UefiPayloadPkg
|
|
|
|
PACKAGE_GUID = E0FC9D50-415E-4946-B686-9A130D5859E7
|
|
|
|
PACKAGE_VERSION = 0.1
|
|
|
|
|
|
|
|
[Includes]
|
|
|
|
Include
|
|
|
|
|
|
|
|
|
|
|
|
[Guids]
|
|
|
|
#
|
|
|
|
## Defines the token space for the UEFI Payload Package PCDs.
|
|
|
|
#
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid = {0x1d127ea, 0xf6f1, 0x4ef6, {0x94, 0x15, 0x8a, 0x0, 0x0, 0x93, 0xf8, 0x9d}}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Gop Temp
|
|
|
|
#
|
|
|
|
gBmpImageGuid = { 0x878AC2CC, 0x5343, 0x46F2, { 0xB5, 0x63, 0x51, 0xF8, 0x9D, 0xAF, 0x56, 0xBA } }
|
|
|
|
|
2021-06-21 09:29:40 +02:00
|
|
|
##include/Guid/BootManagerMenu.h
|
|
|
|
gEdkiiBootManagerMenuFileGuid = { 0xdf939333, 0x42fc, 0x4b2a, { 0xa5, 0x9e, 0xbb, 0xae, 0x82, 0x81, 0xfe, 0xef }}
|
2022-03-31 13:56:07 +02:00
|
|
|
gEdkiiDebugPrintErrorLevelGuid = { 0xad82f436, 0x75c5, 0x4aa9, { 0x92, 0x93, 0xc5, 0x55, 0x0a, 0x7f, 0xf9, 0x71 }}
|
2019-04-11 17:51:22 +02:00
|
|
|
gUefiAcpiBoardInfoGuid = {0xad3d31b, 0xb3d8, 0x4506, {0xae, 0x71, 0x2e, 0xf1, 0x10, 0x6, 0xd9, 0xf}}
|
|
|
|
gUefiSerialPortInfoGuid = { 0x6c6872fe, 0x56a9, 0x4403, { 0xbb, 0x98, 0x95, 0x8d, 0x62, 0xde, 0x87, 0xf1 } }
|
|
|
|
gLoaderMemoryMapInfoGuid = { 0xa1ff7424, 0x7a1a, 0x478e, { 0xa9, 0xe4, 0x92, 0xf3, 0x57, 0xd1, 0x28, 0x32 } }
|
2022-04-28 08:45:47 +02:00
|
|
|
gEdkiiPayloadCommandLineGuid = {0xb5aeb34f, 0x3047, 0x4955, {0xb8, 0x80, 0xad, 0xd3, 0x6d, 0x86, 0xdc, 0x0f}}
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2021-09-22 23:42:50 +02:00
|
|
|
# SMM variable support
|
|
|
|
gNvVariableInfoGuid = { 0x7a345dca, 0xc26, 0x4f2a, { 0xa8, 0x9a, 0x57, 0xc0, 0x8d, 0xdd, 0x22, 0xee } }
|
2021-09-22 23:31:29 +02:00
|
|
|
gSpiFlashInfoGuid = { 0x2d4aac1b, 0x91a5, 0x4cd5, { 0x9b, 0x5c, 0xb4, 0x0f, 0x5d, 0x28, 0x51, 0xa1 } }
|
2021-09-22 23:22:42 +02:00
|
|
|
gSmmRegisterInfoGuid = { 0xaa9bd7a7, 0xcafb, 0x4499, { 0xa4, 0xa9, 0xb, 0x34, 0x6b, 0x40, 0xa6, 0x22 } }
|
2021-09-22 23:27:21 +02:00
|
|
|
gS3CommunicationGuid = { 0x88e31ba1, 0x1856, 0x4b8b, { 0xbb, 0xdf, 0xf8, 0x16, 0xdd, 0x94, 0xa, 0xef } }
|
2021-09-22 23:22:42 +02:00
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
[Ppis]
|
|
|
|
gEfiPayLoadHobBasePpiGuid = { 0xdbe23aa1, 0xa342, 0x4b97, {0x85, 0xb6, 0xb2, 0x26, 0xf1, 0x61, 0x73, 0x89} }
|
|
|
|
|
|
|
|
[Protocols]
|
|
|
|
#
|
|
|
|
# Gop Temp
|
|
|
|
#
|
|
|
|
gPlatformGOPPolicyGuid = { 0xec2e931b, 0x3281, 0x48a5, { 0x81, 0x07, 0xdf, 0x8a, 0x8b, 0xed, 0x3c, 0x5d } }
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# PCD Declarations section - list of all PCDs Declared by this Package
|
|
|
|
# Only this package should be providing the
|
|
|
|
# declaration, other packages should not.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
[PcdsFixedAtBuild, PcdsPatchableInModule]
|
|
|
|
## Indicates the base address of the payload binary in memory
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemBase|0|UINT32|0x10000001
|
|
|
|
## Provides the size of the payload binary in memory
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemSize|0|UINT32|0x10000002
|
2021-09-29 05:34:40 +02:00
|
|
|
## Save bootloader parameter
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0|UINT64|0x10000004
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
## Used to help reduce fragmentation in the EFI memory map
|
2023-04-04 21:30:30 +02:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x19|UINT32|0x10000012
|
2019-04-11 17:51:22 +02:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x04|UINT32|0x10000013
|
2023-04-04 21:30:30 +02:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x08|UINT32|0x00000014
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100|UINT32|0x00000015
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100|UINT32|0x00000016
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2020-09-13 01:31:14 +02:00
|
|
|
# Size of the region used by UEFI in permanent memory
|
UefiPayloadPkg: Increase SystemMemoryUefiRegionSize from 32M to 64M
Current, the SystemMemoryUefiRegionSize is 32M, which means in universal
payload entry, we can at most use 32M heap.
However, this can't meet the memory requirment for 5 level page table.
In UefiPayloadPkg\UefiPayloadEntry\X64\VirtualMemory.c, we assume the
Physical Address at most has 52 bits. Using 1G table support, with 52 bits
Physical Address, to build page table, we need one page to hold 16 PML5
entries, each PML5 entry points to one page containing 512 PML4 entries.
One PML4 entry points to one page containing 512 PML3 entries. Each PML3
entries will point to 1G memory space. Totally 8209 pages are needed,
which is around 32M bytes.
Therefore, increase SystemMemoryUefiRegionSize from 32M to 64M to support
5 level page tables.
Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2021-12-01 02:59:17 +01:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000|UINT32|0x00000017
|
2021-06-10 09:08:13 +02:00
|
|
|
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }|VOID*|0x00000018
|
2021-09-22 23:42:50 +02:00
|
|
|
|
2022-03-05 11:14:34 +01:00
|
|
|
# Boot Manager Key
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|FALSE|BOOLEAN|0x00000020
|
|
|
|
|
2021-09-22 23:42:50 +02:00
|
|
|
## FFS filename to find the default variable initial data file.
|
|
|
|
# @Prompt FFS Name of variable initial data file
|
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdNvsDataFile |{ 0x1a, 0xf1, 0xb1, 0xae, 0x42, 0xcc, 0xcf, 0x4e, 0xac, 0x60, 0xdb, 0xab, 0xf6, 0xca, 0x69, 0xe6 }|VOID*|0x00000025
|