Re: [PATCH V3 14/29] UefiCpuPkg: Enable Tdx support in MpInitLib


Gerd Hoffmann
 

+++ b/UefiCpuPkg/Library/MpInitLib/X64/IntelTdcall.nasm
@@ -0,0 +1,120 @@
+;------------------------------------------------------------------------------
+;*
+;* Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
+;* SPDX-License-Identifier: BSD-2-Clause-Patent
+;*
+;*
+;------------------------------------------------------------------------------
+
+DEFAULT REL
+SECTION .text
+
+%macro tdcall 0
+ db 0x66,0x0f,0x01,0xcc
+%endmacro
Hmm, could you just use TdxLib instead of bringing your own copy of the
assembler code?

take care,
Gerd

Join devel@edk2.groups.io to automatically receive all group messages.