[edk2-devel] [PATCH 3/6] UefiCpuPkg/ResetVector: Add InitTdx in UefiCpuPkg

Min Xu min.m.xu at intel.com
Mon Jul 12 01:19:39 UTC 2021


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.dong at intel.com>
Cc: Jiewen Yao <jiewen.yao at intel.com>
Cc: Ray Ni <ray.ni at intel.com>
Cc: Laszlo Ersek <lersek at redhat.com>
Signed-off-by: Min Xu <min.m.xu at 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/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list