From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.32920.1641827599550995785 for ; Mon, 10 Jan 2022 07:13:22 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=drkxv3mz; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: yun.lou@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641827602; x=1673363602; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NN+GnT0BJxLQYdGYQ5Bl3LYaiAgp1WWY0kohTrKcjuM=; b=drkxv3mzMN2w+DXcLbd50C/oprQYbVfL2mb9XK/qg4X8I682dqNFTXdB tGmmwb+4r+hBEgnedKnvLZKnh+4pJsdvjWatrvfTJhJ5FONm2FPay354K sp7g4RsPbAjM2gH1tKSWgfRjwq/irB4lw6il6QvmrHCk1u2BBAQYdN5gc T5PBj0tFtoOShT6Si3RxCSO4vchWO0uFxRQtBsDpQQxyUiiH8qnyeQ7Ft VeJvlZWnYKGwo6SNzSG9okdkfyMXjy3aMBa/vp45dldtvpLrQopcOOomN MHH58T3EFlpfVXsjJE6xQ1OjI0z880uCc58w547rst5UoavvwOq/nkHxe w==; X-IronPort-AV: E=McAfee;i="6200,9189,10222"; a="306599916" X-IronPort-AV: E=Sophos;i="5.88,277,1635231600"; d="scan'208";a="306599916" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2022 07:13:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,277,1635231600"; d="scan'208";a="528307395" Received: from shwdeopenlab102.ccr.corp.intel.com ([10.239.183.94]) by orsmga008.jf.intel.com with ESMTP; 10 Jan 2022 07:13:21 -0800 From: "Jason Lou" To: devel@edk2.groups.io Cc: Jason , Hao A Wu Subject: [PATCH v2 3/6] SourceLevelDebugPkg: Replace Opcode with the corresponding instructions. Date: Mon, 10 Jan 2022 23:12:50 +0800 Message-Id: <20220110151253.3848-3-yun.lou@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20220110151253.3848-1-yun.lou@intel.com> References: <20220110151253.3848-1-yun.lou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3790 Replace Opcode with the corresponding instructions. The code changes have been verified with CompareBuild.py tool, which can be used to compare the results of two different EDK II builds to determine if they generate the same binaries. (tool link: https://github.com/mdkinney/edk2/tree/sandbox/CompareBuild) Signed-off-by: Jason Lou Cc: Hao A Wu --- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs.nasm= | 6 +++--- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/AsmFuncs.nasm = | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/A= smFuncs.nasm b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32= /AsmFuncs.nasm index 912256ba45..b5e5a96e34 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs= .nasm +++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs= .nasm @@ -1,6 +1,6 @@ ;-------------------------------------------------------------------------= -----=0D ;=0D -; Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.
=0D +; Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.
=0D ; SPDX-License-Identifier: BSD-2-Clause-Patent=0D ;=0D ; Module Name:=0D @@ -321,7 +321,7 @@ NoExtrPush: test edx, BIT24 ; Test for FXSAVE/FXRESTOR support.=0D ; edx still contains result from CPUID above=0D jz .2=0D - db 0xf, 0xae, 00000111y ;fxsave [edi]=0D + fxsave [edi]=0D .2:=0D =0D ;; save the exception data=0D @@ -342,7 +342,7 @@ NoExtrPush: cpuid ; use CPUID to determine if FXSAVE/FXRESTOR are su= pported=0D test edx, BIT24 ; Test for FXSAVE/FXRESTOR support=0D jz .3=0D - db 0xf, 0xae, 00001110y ; fxrstor [esi]=0D + fxrstor [esi]=0D .3:=0D add esp, 512=0D =0D diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/As= mFuncs.nasm b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/A= smFuncs.nasm index ccee120ca1..b1019e017b 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/AsmFuncs.= nasm +++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/AsmFuncs.= nasm @@ -1,6 +1,6 @@ ;-------------------------------------------------------------------------= -----=0D ;=0D -; Copyright (c) 2016, Intel Corporation. All rights reserved.
=0D +; Copyright (c) 2016 - 2022, Intel Corporation. All rights reserved.
=0D ; SPDX-License-Identifier: BSD-2-Clause-Patent=0D ;=0D ; Module Name:=0D @@ -293,7 +293,7 @@ NoExtrPush: rep stosq=0D pop rcx=0D mov rdi, rsp=0D - db 0xf, 0xae, 00000111y ;fxsave [rdi]=0D + fxsave [rdi]=0D =0D ;; save the exception data=0D push qword [rbp + 16]=0D @@ -314,7 +314,7 @@ NoExtrPush: add rsp, 8=0D =0D mov rsi, rsp=0D - db 0xf, 0xae, 00001110y ; fxrstor [rsi]=0D + fxrstor [rsi]=0D add rsp, 512=0D =0D ;; UINT64 Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;=0D --=20 2.28.0.windows.1