From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web12.5424.1626052808517988836 for ; Sun, 11 Jul 2021 18:20:14 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: min.m.xu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10042"; a="209726403" X-IronPort-AV: E=Sophos;i="5.84,232,1620716400"; d="scan'208";a="209726403" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2021 18:20:14 -0700 X-IronPort-AV: E=Sophos;i="5.84,232,1620716400"; d="scan'208";a="459018153" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.238.4.4]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2021 18:20:12 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Eric Dong , Jiewen Yao , Ray Ni , Laszlo Ersek Subject: [PATCH 3/6] UefiCpuPkg/ResetVector: Add InitTdx in UefiCpuPkg Date: Mon, 12 Jul 2021 09:19:39 +0800 Message-Id: X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Jiewen Yao Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: Min Xu --- 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.
+; SPDX-License-Identifier: BSD-2-Clause-Patent +; +;------------------------------------------------------------------------------ + +BITS 32 + +InitTdx: + nop +doneTdxInit: + OneTimeCallRet InitTdx -- 2.29.2.windows.2