]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/WriteMm2.c
ebab66f2391a4762ef61600347a3ae92c7f371a2
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteMm2.c
1 /** @file
2 AsmWriteMm2 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 #2 (MM2).
11
12 Writes the current value of MM2. This function is only available on IA32 and
13 x64.
14
15 @param Value The 64-bit value to write to MM2.
16
17 **/
18 VOID
19 EFIAPI
20 AsmWriteMm2 (
21 IN UINT64 Value
22 )
23 {
24 _asm {
25 movq mm2, qword ptr [Value]
26 emms
27 }
28 }