]> git.proxmox.com Git - mirror_edk2.git/commit
UefiPayloadPkg: Remove PEI phase from Payload
authorGuo Dong <guo.dong@intel.com>
Sat, 12 Sep 2020 23:31:14 +0000 (16:31 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 2 Dec 2020 23:10:22 +0000 (23:10 +0000)
commit7c4ab1c2ef60a4690177d2361f8dd44d7d7df7f8
tree80c5f10e2a80c005141851f8a2a7a076244dfc5e
parent9fb629edd75e1ae1e7f4e85b0876107a7180899b
UefiPayloadPkg: Remove PEI phase from Payload

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3100

It is not necessary to have a PEI phase in the UEFI payload since no
specific PEI task is required. This patch adds a UefiPayloadEntry
driver to get UEFI Payload required information from the bootloaders,
convert them into a HOB list, load DXE core and transfer control to it.

Here is the change details:
1) Removed PEI phase, including Peicore, BlSupportPei, SecCore, etc.
2) Added UefiPayloadEntry driver. this is the only driver before DXE core.
3) Added Pure X64 support, dropped Pure IA32 (Could add later if required)
   64bit payload with 32bit entry point is still supported.
4) Use one DSC file UefiPayloadPkg.dsc to support X64 and IA32X64 build.
   Removed UefiPayloadIa32.dsc and UefiPayloadIa32X64.dsc

Tested with SBL and coreboot on QEMU.

Signed-off-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Benjamin You <benjamin.you@intel.com>
30 files changed:
UefiPayloadPkg/BlSupportPei/BlSupportPei.c [deleted file]
UefiPayloadPkg/BlSupportPei/BlSupportPei.h [deleted file]
UefiPayloadPkg/BlSupportPei/BlSupportPei.inf [deleted file]
UefiPayloadPkg/BuildAndIntegrationInstructions.txt
UefiPayloadPkg/Include/Library/BlParseLib.h
UefiPayloadPkg/Library/HobLib/Hob.c [new file with mode: 0644]
UefiPayloadPkg/Library/HobLib/HobLib.inf [new file with mode: 0644]
UefiPayloadPkg/SecCore/FindPeiCore.c [deleted file]
UefiPayloadPkg/SecCore/Ia32/SecEntry.nasm [deleted file]
UefiPayloadPkg/SecCore/Ia32/Stack.nasm [deleted file]
UefiPayloadPkg/SecCore/SecCore.inf [deleted file]
UefiPayloadPkg/SecCore/SecMain.c [deleted file]
UefiPayloadPkg/SecCore/SecMain.h [deleted file]
UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/Ia32/IdtVectorAsm.nasm [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/Ia32/SecEntry.nasm [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/LoadDxeCore.c [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/MemoryAllocation.c [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/X64/DxeLoadFunc.c [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/X64/SecEntry.nasm [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.c [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadEntry/X64/VirtualMemory.h [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadPkg.dec
UefiPayloadPkg/UefiPayloadPkg.dsc [new file with mode: 0644]
UefiPayloadPkg/UefiPayloadPkg.fdf
UefiPayloadPkg/UefiPayloadPkgIa32.dsc [deleted file]
UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc [deleted file]