]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/WriteMm3.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteMm3.c
1 /** @file
2 AsmWriteMm3 function
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 /**
10 Writes the current value of 64-bit MMX Register #3 (MM3).
11
12 Writes the current value of MM3. This function is only available on IA32 and
13 x64.
14
15 @param Value The 64-bit value to write to MM3.
16
17 **/
18 VOID
19 EFIAPI
20 AsmWriteMm3 (
21 IN UINT64 Value
22 )
23 {
24 _asm {
25 movq mm3, qword ptr [Value]
26 emms
27 }
28 }