]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/WriteMm1.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteMm1.c
1 /** @file
2 AsmWriteMm1 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
11
12 /**
13 Writes the current value of 64-bit MMX Register #1 (MM1).
14
15 Writes the current value of MM1. This function is only available on IA32 and
16 x64.
17
18 @param Value The 64-bit value to write to MM1.
19
20 **/
21 VOID
22 EFIAPI
23 AsmWriteMm1 (
24 IN UINT64 Value
25 )
26 {
27 _asm {
28 movq mm1, qword ptr [Value]
29 emms
30 }
31 }
32