MdePkg: 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: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -51,8 +51,7 @@ ASM_PFX(InternalX86DisablePaging64):
|
||||
sub eax, 4 ; eax <- One slot below transition code on the stack
|
||||
push rcx ; push Cs to stack
|
||||
push r10 ; push address of tansition code on stack
|
||||
DB 0x48 ; prefix to composite "retq" with next "retf"
|
||||
retf ; Use far return to load CS register from stack
|
||||
retfq
|
||||
|
||||
; Start of transition code
|
||||
.0:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -41,12 +41,12 @@ ASM_PFX(InternalLongJump):
|
||||
push rdx ; save rdx
|
||||
|
||||
mov rdx, [rcx + 0xF8] ; rdx = target SSP
|
||||
READSSP_RAX
|
||||
rdsspq rax
|
||||
sub rdx, rax ; rdx = delta
|
||||
mov rax, rdx ; rax = delta
|
||||
|
||||
shr rax, 3 ; rax = delta/sizeof(UINT64)
|
||||
INCSSP_RAX
|
||||
incsspq rax
|
||||
|
||||
pop rdx ; restore rdx
|
||||
CetDone:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -32,6 +32,6 @@ ASM_PFX(AsmMonitor):
|
||||
mov eax, ecx
|
||||
mov ecx, edx
|
||||
mov edx, r8d
|
||||
DB 0xf, 1, 0xc8 ; monitor
|
||||
monitor
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -30,6 +30,6 @@ global ASM_PFX(AsmMwait)
|
||||
ASM_PFX(AsmMwait):
|
||||
mov eax, ecx
|
||||
mov ecx, edx
|
||||
DB 0xf, 1, 0xc9 ; mwait
|
||||
mwait
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2015 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -26,9 +26,8 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(InternalX86RdRand16)
|
||||
ASM_PFX(InternalX86RdRand16):
|
||||
; rdrand ax ; generate a 16 bit RN into eax,
|
||||
rdrand eax ; generate a 16 bit RN into eax,
|
||||
; CF=1 if RN generated ok, otherwise CF=0
|
||||
db 0xf, 0xc7, 0xf0 ; rdrand r16: "0f c7 /6 ModRM:r/m(w)"
|
||||
jc rn16_ok ; jmp if CF=1
|
||||
xor rax, rax ; reg=0 if CF=0
|
||||
ret ; return with failure status
|
||||
@@ -45,9 +44,8 @@ rn16_ok:
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(InternalX86RdRand32)
|
||||
ASM_PFX(InternalX86RdRand32):
|
||||
; rdrand eax ; generate a 32 bit RN into eax,
|
||||
rdrand eax ; generate a 32 bit RN into eax,
|
||||
; CF=1 if RN generated ok, otherwise CF=0
|
||||
db 0xf, 0xc7, 0xf0 ; rdrand r32: "0f c7 /6 ModRM:r/m(w)"
|
||||
jc rn32_ok ; jmp if CF=1
|
||||
xor rax, rax ; reg=0 if CF=0
|
||||
ret ; return with failure status
|
||||
@@ -64,9 +62,8 @@ rn32_ok:
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(InternalX86RdRand64)
|
||||
ASM_PFX(InternalX86RdRand64):
|
||||
; rdrand rax ; generate a 64 bit RN into rax,
|
||||
rdrand rax ; generate a 64 bit RN into rax,
|
||||
; CF=1 if RN generated ok, otherwise CF=0
|
||||
db 0x48, 0xf, 0xc7, 0xf0 ; rdrand r64: "REX.W + 0f c7 /6 ModRM:r/m(w)"
|
||||
jc rn64_ok ; jmp if CF=1
|
||||
xor rax, rax ; reg=0 if CF=0
|
||||
ret ; return with failure status
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -31,6 +31,6 @@ ASM_PFX(AsmReadDr4):
|
||||
; There's no obvious reason to access this register, since it's aliased to
|
||||
; DR7 when DE=0 or an exception generated when DE=1
|
||||
;
|
||||
DB 0xf, 0x21, 0xe0
|
||||
mov rax, dr4
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -31,6 +31,6 @@ ASM_PFX(AsmReadDr5):
|
||||
; There's no obvious reason to access this register, since it's aliased to
|
||||
; DR7 when DE=0 or an exception generated when DE=1
|
||||
;
|
||||
DB 0xf, 0x21, 0xe8
|
||||
mov rax, dr5
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm0)
|
||||
ASM_PFX(AsmReadMm0):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xc0
|
||||
movq rax, mm0
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm1)
|
||||
ASM_PFX(AsmReadMm1):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xc8
|
||||
movq rax, mm1
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm2)
|
||||
ASM_PFX(AsmReadMm2):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xd0
|
||||
movq rax, mm2
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm3)
|
||||
ASM_PFX(AsmReadMm3):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xd8
|
||||
movq rax, mm3
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm4)
|
||||
ASM_PFX(AsmReadMm4):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xe0
|
||||
movq rax, mm4
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm5)
|
||||
ASM_PFX(AsmReadMm5):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xe8
|
||||
movq rax, mm5
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm6)
|
||||
ASM_PFX(AsmReadMm6):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xf0
|
||||
movq rax, mm6
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmReadMm7)
|
||||
ASM_PFX(AsmReadMm7):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x7e, 0xf8
|
||||
movq rax, mm7
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -48,8 +48,8 @@ ASM_PFX(SetJump):
|
||||
jnc CetDone
|
||||
|
||||
mov rax, 1
|
||||
INCSSP_RAX ; to read original SSP
|
||||
READSSP_RAX
|
||||
incsspq rax ; to read original SSP
|
||||
rdsspq rax
|
||||
mov [rcx + 0xF8], rax ; save SSP
|
||||
|
||||
CetDone:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -31,7 +31,7 @@ ASM_PFX(AsmWriteDr4):
|
||||
; There's no obvious reason to access this register, since it's aliased to
|
||||
; DR6 when DE=0 or an exception generated when DE=1
|
||||
;
|
||||
DB 0xf, 0x23, 0xe1
|
||||
mov dr4, rcx
|
||||
mov rax, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -31,7 +31,7 @@ ASM_PFX(AsmWriteDr5):
|
||||
; There's no obvious reason to access this register, since it's aliased to
|
||||
; DR7 when DE=0 or an exception generated when DE=1
|
||||
;
|
||||
DB 0xf, 0x23, 0xe9
|
||||
mov dr5, rcx
|
||||
mov rax, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm0)
|
||||
ASM_PFX(AsmWriteMm0):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xc1
|
||||
movq mm0, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm1)
|
||||
ASM_PFX(AsmWriteMm1):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xc9
|
||||
movq mm1, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm2)
|
||||
ASM_PFX(AsmWriteMm2):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xd1
|
||||
movq mm2, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm3)
|
||||
ASM_PFX(AsmWriteMm3):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xd9
|
||||
movq mm3, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm4)
|
||||
ASM_PFX(AsmWriteMm4):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xe1
|
||||
movq mm4, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm5)
|
||||
ASM_PFX(AsmWriteMm5):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xe9
|
||||
movq mm5, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm6)
|
||||
ASM_PFX(AsmWriteMm6):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xf1
|
||||
movq mm6, rcx
|
||||
ret
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
;
|
||||
; Module Name:
|
||||
@@ -27,9 +27,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(AsmWriteMm7)
|
||||
ASM_PFX(AsmWriteMm7):
|
||||
;
|
||||
; 64-bit MASM doesn't support MMX instructions, so use opcode here
|
||||
;
|
||||
DB 0x48, 0xf, 0x6e, 0xf9
|
||||
movq mm7, rcx
|
||||
ret
|
||||
|
||||
|
Reference in New Issue
Block a user