MdePkg/BaseLib: Add NULL version Tdx functions for other architectures

Currently, the NULL version Tdx functions are only built for Ia32.
In BaseLib, the others architectures also need such NULL version
Tdx functions.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Min Xu <min.m.xu@intel.com>
Signed-off-by: Ceping Sun <cepingx.sun@intel.com>
This commit is contained in:
Ceping Sun 2024-08-29 21:21:48 -04:00 committed by mergify[bot]
parent b437b5ca4c
commit 043615ae8b
2 changed files with 5 additions and 4 deletions

View File

@ -5259,8 +5259,6 @@ SpeculationBarrier (
VOID
);
#if defined (MDE_CPU_X64) || defined (MDE_CPU_IA32)
/**
The TDCALL instruction causes a VM exit to the Intel TDX module. It is
used to call guest-side Intel TDX functions, either local or a TD exit
@ -5323,8 +5321,6 @@ TdIsEnabled (
VOID
);
#endif
#if defined (MDE_CPU_X64)
//
// The page size for the PVALIDATE instruction

View File

@ -339,6 +339,7 @@
Ebc/SpeculationBarrier.c
Unaligned.c
Math64.c
IntelTdxNull.c
[Sources.ARM]
Arm/InternalSwitchStack.c
@ -364,6 +365,7 @@
Arm/CpuBreakpoint.S | GCC
Arm/MemoryFence.S | GCC
Arm/SpeculationBarrier.S | GCC
IntelTdxNull.c
[Sources.AARCH64]
Arm/InternalSwitchStack.c
@ -391,6 +393,7 @@
AArch64/SpeculationBarrier.asm | MSFT
AArch64/ArmReadCntPctReg.asm | MSFT
AArch64/ArmReadIdAA64Isar0Reg.asm | MSFT
IntelTdxNull.c
[Sources.RISCV64]
Math64.c
@ -412,6 +415,7 @@
RiscV64/ReadTimer.S | GCC
RiscV64/RiscVMmu.S | GCC
RiscV64/SpeculationBarrier.S | GCC
IntelTdxNull.c
[Sources.LOONGARCH64]
Math64.c
@ -432,6 +436,7 @@
LoongArch64/ExceptionBase.S | GCC
LoongArch64/Cpucfg.S | GCC
LoongArch64/ReadStableCounter.S | GCC
IntelTdxNull.c
[Packages]
MdePkg/MdePkg.dec