From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.46291.1640743854551463864 for ; Tue, 28 Dec 2021 18:10:55 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Z99Jcs8b; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1640743855; x=1672279855; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=flxO09XWwJS/pe5neM7voMMXDjjjAIx9z1xoza3j99E=; b=Z99Jcs8bApExgEq6x2Z9EfnESDZkCkIA99Z5lweOhqRz9VIWUiGLxjoC LXUo6/PIViXjlNi+9XuQqM14MpdW4kJSBwiWUijluhaf5FAw6Xzb97daP HlSVYxV9v8mAeroIG/cwal7w7yoPHQwZ9KrH+O2daESmP6X4A21YhZ4JH SQz7UIVe1/app9nJMRUNKHIsMj5prrfgPrGdl0Us0p5la4dZdeIe7t2YT xBHjbAWg0DWezHhFGvHC9qp0zmcjLb9ivgL+7jY8dP0RnB2yyXV7yCXVH Wqe6fahh6u4tW+E/L5MuAC+Pd02zJsjUhJodoOTUsIYv59K6dQbuO0tlG g==; X-IronPort-AV: E=McAfee;i="6200,9189,10211"; a="241251907" X-IronPort-AV: E=Sophos;i="5.88,244,1635231600"; d="scan'208";a="241251907" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2021 18:10:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,244,1635231600"; d="scan'208";a="761247326" Received: from shwdeopenlab102.ccr.corp.intel.com ([10.239.56.73]) by fmsmga005.fm.intel.com with ESMTP; 28 Dec 2021 18:10:34 -0800 From: "Jason Lou" To: devel@edk2.groups.io Cc: Jason Lou , Hao A Wu Subject: [PATCH v1 3/4] SourceLevelDebugPkg: Replace Opcode with the corresponding instructions. Date: Wed, 29 Dec 2021 10:10:25 +0800 Message-Id: <20211229021026.3107-3-yun.lou@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20211229021026.3107-1-yun.lou@intel.com> References: <20211229021026.3107-1-yun.lou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jason Lou 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. (the tool link: https://github.com/mdkinney/edk2) 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..7485d14674 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 - 2021, 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..7dae22fb5c 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 - 2021, 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