RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429
In ResetVector phase some Tdx initialization may be needed, for example, recording the Tdx flag ('TDXG'), CPU GPA width, etc. It will be called by the Main32 entry point in Main.asm. InitTdx.asm in UefiCpuPkg/ResetVector is a placeholder and the actual initialization is done in other Pkg, such as OvmfPkg. Cc: Eric Dong <eric.d...@intel.com> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Min Xu <min.m...@intel.com> --- UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm diff --git a/UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm b/UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm new file mode 100644 index 000000000000..feb917779fbd --- /dev/null +++ b/UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm @@ -0,0 +1,15 @@ +;------------------------------------------------------------------------------ +; @file +; Tdx Initialization. +; +; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> +; SPDX-License-Identifier: BSD-2-Clause-Patent +; +;------------------------------------------------------------------------------ + +BITS 32 + +InitTdx: + nop +doneTdxInit: + OneTimeCallRet InitTdx -- 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77678): https://edk2.groups.io/g/devel/message/77678 Mute This Topic: https://groups.io/mt/84144140/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-