public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Wu, Hao A" <hao.a.wu@intel.com>
To: "Lou, Yun" <yun.lou@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [PATCH v2 3/6] SourceLevelDebugPkg: Replace Opcode with the corresponding instructions.
Date: Tue, 11 Jan 2022 01:03:47 +0000	[thread overview]
Message-ID: <DM6PR11MB402535B1534A2A6EED544A5BCA519@DM6PR11MB4025.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20220110151253.3848-3-yun.lou@intel.com>

Reviewed-by: Hao A Wu <hao.a.wu@intel.com>

Best Regards,
Hao Wu

> -----Original Message-----
> From: Lou, Yun <yun.lou@intel.com>
> Sent: Monday, January 10, 2022 11:13 PM
> To: devel@edk2.groups.io
> Cc: Lou, Yun <yun.lou@intel.com>; Wu, Hao A <hao.a.wu@intel.com>
> Subject: [PATCH v2 3/6] SourceLevelDebugPkg: Replace Opcode with the
> corresponding instructions.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3790
> 
> 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 <yun.lou@intel.com>
> Cc: Hao A Wu <hao.a.wu@intel.com>
> ---
> 
> SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/Asm
> Funcs.nasm | 6 +++---
> 
> SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/Asm
> Funcs.nasm  | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git
> a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/As
> mFuncs.nasm
> b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/A
> smFuncs.nasm
> index 912256ba45..b5e5a96e34 100644
> ---
> a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/As
> mFuncs.nasm
> +++
> b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/A
> smFuncs.nasm
> @@ -1,6 +1,6 @@
>  ;------------------------------------------------------------------------------
> 
>  ;
> 
> -; Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
> 
> +; Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>
> 
>  ; SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  ;
> 
>  ; Module Name:
> 
> @@ -321,7 +321,7 @@ NoExtrPush:
>      test    edx, BIT24  ; Test for FXSAVE/FXRESTOR support.
> 
>                          ; edx still contains result from CPUID above
> 
>      jz      .2
> 
> -    db 0xf, 0xae, 00000111y ;fxsave [edi]
> 
> +    fxsave  [edi]
> 
>  .2:
> 
> 
> 
>      ;; save the exception data
> 
> @@ -342,7 +342,7 @@ NoExtrPush:
>      cpuid               ; use CPUID to determine if FXSAVE/FXRESTOR are supported
> 
>      test    edx, BIT24  ; Test for FXSAVE/FXRESTOR support
> 
>      jz      .3
> 
> -    db 0xf, 0xae, 00001110y ; fxrstor [esi]
> 
> +    fxrstor [esi]
> 
>  .3:
> 
>      add esp, 512
> 
> 
> 
> diff --git
> a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/As
> mFuncs.nasm
> b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/As
> mFuncs.nasm
> index ccee120ca1..b1019e017b 100644
> ---
> a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/As
> mFuncs.nasm
> +++
> b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/As
> mFuncs.nasm
> @@ -1,6 +1,6 @@
>  ;------------------------------------------------------------------------------
> 
>  ;
> 
> -; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
> 
> +; Copyright (c) 2016 - 2022, Intel Corporation. All rights reserved.<BR>
> 
>  ; SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  ;
> 
>  ; Module Name:
> 
> @@ -293,7 +293,7 @@ NoExtrPush:
>      rep     stosq
> 
>      pop     rcx
> 
>      mov     rdi, rsp
> 
> -    db 0xf, 0xae, 00000111y ;fxsave [rdi]
> 
> +    fxsave  [rdi]
> 
> 
> 
>      ;; save the exception data
> 
>      push    qword [rbp + 16]
> 
> @@ -314,7 +314,7 @@ NoExtrPush:
>      add     rsp, 8
> 
> 
> 
>      mov     rsi, rsp
> 
> -    db 0xf, 0xae, 00001110y ; fxrstor [rsi]
> 
> +    fxrstor [rsi]
> 
>      add     rsp, 512
> 
> 
> 
>      ;; UINT64  Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;
> 
> --
> 2.28.0.windows.1


  reply	other threads:[~2022-01-11  1:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 15:12 [PATCH v2 1/6] MdeModulePkg: Replace Opcode with the corresponding instructions Jason Lou
2022-01-10 15:12 ` [PATCH v2 2/6] MdePkg: " Jason Lou
2022-01-11  0:55   ` 回复: [edk2-devel] " gaoliming
2022-01-10 15:12 ` [PATCH v2 3/6] SourceLevelDebugPkg: " Jason Lou
2022-01-11  1:03   ` Wu, Hao A [this message]
2022-01-10 15:12 ` [PATCH v2 4/6] UefiCpuPkg: " Jason Lou
2022-02-10  5:35   ` Ni, Ray
2022-01-10 15:12 ` [PATCH v2 5/6] MdePkg: Remove the macro definitions regarding Opcode Jason Lou
2022-01-10 15:12 ` [PATCH v2 6/6] BaseTools: Upgrade the version of NASM tool Jason Lou
2022-01-17  0:49   ` Yuwei Chen
2022-02-10  5:36 ` [PATCH v2 1/6] MdeModulePkg: Replace Opcode with the corresponding instructions Ni, Ray
2022-02-10  7:44   ` 回复: [edk2-devel] " gaoliming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR11MB402535B1534A2A6EED544A5BCA519@DM6PR11MB4025.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox