]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: Copy Main.asm from UefiCpuPkg to OvmfPkg's ResetVector
authorMin Xu <min.m.xu@intel.com>
Thu, 23 Sep 2021 03:09:00 +0000 (11:09 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 24 Oct 2021 02:09:27 +0000 (02:09 +0000)
commitf079e9b450b3896bb00eb7a9fed3a6ec7ed3cd04
treecea89e66e85b0bd33b383d43f10f3efb3da8628c
parent62540372230ecb5318a9c8a40580a14beeb9ded0
OvmfPkg: Copy Main.asm from UefiCpuPkg to OvmfPkg's ResetVector

RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429

Previously OvmfPkg/ResetVector uses the Main.asm in
UefiCpuPkg/ReseteVector/Vtf0. In this Main.asm there is only Main16
entry point.

This patch-set is to introduce Intel TDX into Ovmf. Main32 entry point
is needed in Main.asm by Intel TDX. To reduce the complexity of Main.asm
in UefiCpuPkg, OvmfPkg create its own Main.asm to meet the requirement
of Intel TDX. This Main.asm is an unmodified copy (so no functional
change) and the actual changes for tdx come as incremental patches.

UefiCpuPkg/ResetVector/Vtf0/main.asm -> OvmfPkg/ResetVector/Main.asm

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/ResetVector/Main.asm [new file with mode: 0644]