Change IA32 and X64 arch source files for BaseIoLibIntrinsic to support Tdx and sev. Use IoFifoRead/Write API in IoLibFifo.c and the IoLibInternalTdx.c instead of IoFifoSev.nasm for BaseIoLibIntrinsic. With this change, BaseIoLibIntrinsic can also support Tdx guest and sev. Then the assembly code and instance for BaseIoLibIntrinsicSev can be removed.
Signed-off-by: Dun Tan <dun....@intel.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang....@intel.com> Cc: Ray Ni <ray...@intel.com> --- MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf index aeb072ee95..e1a2e1eed8 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf +++ b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf @@ -7,7 +7,7 @@ # ASSERT(). For ARM, AARCH64, RISCV64 and LoongArch, this I/O library only provides # non I/O read and write. # -# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR> +# Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.<BR> # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> # Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR> # Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR> @@ -35,24 +35,26 @@ IoLibMmioBuffer.c BaseIoLibIntrinsicInternal.h IoHighLevel.c - IoLibInternalTdxNull.c IoLibTdx.h [Sources.IA32] IoLibGcc.c | GCC IoLibMsc.c | MSFT IoLib.c - Ia32/IoFifo.nasm + IoLibFifo.c + IoLibInternalTdxNull.c [Sources.X64] IoLibGcc.c | GCC IoLibMsc.c | MSFT IoLib.c - X64/IoFifo.nasm + IoLibFifo.c + IoLibInternalTdx.c [Sources.EBC] IoLibEbc.c IoLib.c + IoLibInternalTdxNull.c [Sources.ARM] IoLibNoIo.c @@ -74,3 +76,7 @@ BaseLib RegisterFilterLib +[LibraryClasses.X64] + TdxLib + CcProbeLib + -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110185): https://edk2.groups.io/g/devel/message/110185 Mute This Topic: https://groups.io/mt/102215665/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-