]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SourceLevelDebugPkg: Replace Opcode with the corresponding instructions.
authorJason <yun.lou@intel.com>
Mon, 10 Jan 2022 13:52:52 +0000 (21:52 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 1 Mar 2022 01:45:47 +0000 (01:45 +0000)
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.
link: https://github.com/mdkinney/edk2/tree/sandbox/CompareBuild)
Signed-off-by: Jason Lou <yun.lou@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs.nasm
SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/AsmFuncs.nasm

index 912256ba455afa0f870394937c6e8987e45e9ce5..b5e5a96e3467aa612c1a8964d9c74ae777afee0e 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>\r
 ; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Module Name:\r
@@ -321,7 +321,7 @@ NoExtrPush:
     test    edx, BIT24  ; Test for FXSAVE/FXRESTOR support.\r
                         ; edx still contains result from CPUID above\r
     jz      .2\r
-    db 0xf, 0xae, 00000111y ;fxsave [edi]\r
+    fxsave  [edi]\r
 .2:\r
 \r
     ;; save the exception data\r
@@ -342,7 +342,7 @@ NoExtrPush:
     cpuid               ; use CPUID to determine if FXSAVE/FXRESTOR are supported\r
     test    edx, BIT24  ; Test for FXSAVE/FXRESTOR support\r
     jz      .3\r
-    db 0xf, 0xae, 00001110y ; fxrstor [esi]\r
+    fxrstor [esi]\r
 .3:\r
     add esp, 512\r
 \r
index ccee120ca178dc3a72005498cc66a4aa79ce0025..b1019e017bc4697fa1aa0411573d01b66a76b4ca 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2016 - 2022, Intel Corporation. All rights reserved.<BR>\r
 ; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Module Name:\r
@@ -293,7 +293,7 @@ NoExtrPush:
     rep     stosq\r
     pop     rcx\r
     mov     rdi, rsp\r
-    db 0xf, 0xae, 00000111y ;fxsave [rdi]\r
+    fxsave  [rdi]\r
 \r
     ;; save the exception data\r
     push    qword [rbp + 16]\r
@@ -314,7 +314,7 @@ NoExtrPush:
     add     rsp, 8\r
 \r
     mov     rsi, rsp\r
-    db 0xf, 0xae, 00001110y ; fxrstor [rsi]\r
+    fxrstor [rsi]\r
     add     rsp, 512\r
 \r
     ;; UINT64  Dr0, Dr1, Dr2, Dr3, Dr6, Dr7;\r